The concepts
Rogue Wave®
JViews TGO provides contextual information and services that can be shared by a number of components in the broad sense of the term, that is, graphic components, data sources, and adapters. This common information can be accessed through a class that defines the application context, or in short, the
context.
Context
The context encapsulates all common data and services in one object and provides access to information that is usually defined as singletons or static data.
All
JViews TGO components can access contextual information from this single entry point called the context. In
JViews TGO this idea of application context is similar to the Java™ BeansContext as defined in “Extensible Runtime Containment and Service Protocol for JavaBeans™”. (For more information, see
http://java.sun.com.) However, you do not have to be familiar with the BeansContext API to understand the concept of context in
JViews TGO.
The context is defined by the
IlpContext interface. This interface allows you to retrieve contextual information such as the locale and properties, as well as a number of services that are more than simple information providers. These services are the following:
Type converter
URL access service
Image repository service
Synchronization strategy
Class manager
Data Source manager
Blinking manager
Class Loader service
Monitoring service
These services are described in detail in section
The context services.
Generally, there is only one context per application. However, you can define multiple contexts if your application is to run in a multiuser environment or if different services should be accessible from various parts of the application. For more information, see
Creating a new context.
Deployment descriptor
The deployment descriptor is an XML file used to initialize an application context. It is tagged with the XML element <deployment>. The context data and services to be initialized when the application is launched are defined between the opening and closing tags.
The deployment descriptor represents an easier and faster alternative for configuring a context than the API, as you do not have to write a single line of code nor recompile when you make a change.
Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.