public class IlpDefaultContext extends Object implements IlpContext
| Constructor and Description | 
|---|
| IlpDefaultContext()Default constructor. | 
| IlpDefaultContext(IlpContext context)Copy constructor. | 
| IlpDefaultContext(Locale locale)Constructor with locale parameter. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addService(Class serviceClass,
          Object service)Adds a service to the available services of the context. | 
| protected IlpBlinkingManager | createBlinkingManager()Creates a  IlpBlinkingManagerto be used by
 this context. | 
| protected IlpClassLoaderService | createClassLoaderService()Creates a  IlpClassLoaderServiceto be used
 by this context. | 
| protected IlpClassManager | createClassManager()Creates a  IlpClassManagerto be used
 by this context. | 
| protected IlpDataSourceManager | createDataSourceManager()Creates a  IlpDataSourceManagerto be
 used by this context. | 
| protected IlpImageRepository | createImageRepository()Creates a  IlpImageRepositoryto be used
 by this context. | 
| protected IlpInteractorManager | createInteractorManager()Creates a  IlpInteractorManagerto be used
 by this context. | 
| protected IlpMonitoringService | createMonitoringService()Creates a  IlpMonitoringServiceto be used
 by this context. | 
| protected IlSynchronizationStrategy | createSynchronizationStrategy()Creates a  IlSynchronizationStrategyto be used by
 this context. | 
| protected IlpTypeConverter | createTypeConverter()Creates a  IlpTypeConverterto be used by this
 context. | 
| protected IlpURLAccessService | createURLAccessService()Creates a  IlpURLAccessServiceto be used
 by this context. | 
| IlpBlinkingManager | getBlinkingManager()Returns the blinking manager. | 
| IlpClassLoaderService | getClassLoaderService()Returns the class loader service. | 
| IlpMutableClassManager | getClassManager()Returns the class manager. | 
| IlpMutableDataSourceManager | getDataSourceManager()Returns the data source manager. | 
| String | getDocumentBase()Get the DocumentBase value. | 
| IlpImageRepository | getImageRepository()Returns the image repository. | 
| IlpMutableInteractorManager | getInteractorManager()Returns the interactor manager. | 
| Locale | getLocale()Returns the locale. | 
| IlpMonitoringService | getMonitoringService()Returns the monitoring service. | 
| Map | getProperties()Returns all the properties of this context as a Map containing
 property names in the form of keys mapped to values. | 
| Object | getProperty(String name)Returns a property value of the context. | 
| Object | getService(Class serviceClass)Retrieves a service by its Java class. | 
| Collection | getServices()Retrieves the list of available service classes as a collection. | 
| IlpStyleManager | getStyleManager()Deprecated. 
 The Style API has been replaced by the Cascading Style
 Sheet mechanism. Please refer to the User's Manual for further information. | 
| IlSynchronizationStrategy | getSynchronizationStrategy()Returns the synchronization strategy. | 
| IlpTypeConverter | getTypeConverter()Returns the type converter. | 
| IlpURLAccessService | getURLAccessService()Returns the URL access service. | 
| void | removeService(Class serviceClass,
             Object service)Removes a service from the available services of the context. | 
| void | setDeploymentFile(String newDeploymentFile)Sets the  DeploymentFilevalue and applies it to this context, using
 the document base. | 
| void | setDocumentBase(String newDocumentBase)Set the DocumentBase value, and apply the deployment descriptor
 to this context object if the deployment file is set. | 
| void | setLocale(Locale locale)Sets the locale. | 
| void | setProperty(String name,
           Object property)Sets a property value in the context. | 
public IlpDefaultContext()
The locale that is obtained is the default locale
 (see Locale.getDefault()).
public IlpDefaultContext(Locale locale)
IlSynchronizationStrategy
 interface. The default is returned by
 IlSynchronizationStrategy.GetDefault().
 IlpClassManager interface).
 The default is an instance of
 IlpDefaultClassManager.
 IlpClassLoaderService interface).
 The default is an instance of
 IlpDefaultClassLoaderService.
 IlpTypeConverter interface).
 The default is an instance of
 IlpDefaultTypeConverter.
 IlpURLAccessService interface).
 The default is an instance of
 IlpDefaultURLAccessService.
 IlpImageRepository interface).
 The default is an instance of
 IlpDefaultImageRepository.
 IlpDataSourceManager interface).
 The default is an instance of
 IlpDefaultDataSourceManager.
 locale - The locale to be used in this context. If the locale is null,
 the default locale is used (see Locale.getDefault()).public IlpDefaultContext(IlpContext context)
public Locale getLocale()
getLocale in interface IlpContextpublic void setLocale(Locale locale)
locale - The locale used within this context.public Object getProperty(String name)
getProperty in interface IlpContextname - The name of the property.null.public void setProperty(String name, Object property)
name - The name of the property.property - The property being storedpublic Map getProperties()
getProperties in interface IlpContextpublic IlpURLAccessService getURLAccessService()
(IlpURLAccessService)getService(IlpURLAccessService.class)getURLAccessService in interface IlpContextpublic Object getService(Class serviceClass)
getService in interface IlpContextserviceClass - The Java class to be implemented by the returned service.public Collection getServices()
getServices in interface IlpContextpublic void addService(Class serviceClass, Object service)
serviceClass - A class (usually an interface) that identifies and
 defines the service; for example, IlpURLAccessService.service - The service implementation; for example,
 IlpDefaultURLAccessService.public void removeService(Class serviceClass, Object service)
serviceClass - A class (usually an interface) that identifies and
 defines the service; for example, IlpURLAccessService.service - The service implementation; for example,
 IlpDefaultURLAccessService.public IlpMutableClassManager getClassManager()
getClassManager in interface IlpContextpublic IlpMutableDataSourceManager getDataSourceManager()
getDataSourceManager in interface IlpContext@Deprecated public IlpStyleManager getStyleManager()
getStyleManager in interface IlpContextpublic IlpMutableInteractorManager getInteractorManager()
getInteractorManager in interface IlpContextpublic IlpBlinkingManager getBlinkingManager()
getBlinkingManager in interface IlpContextpublic IlSynchronizationStrategy getSynchronizationStrategy()
getSynchronizationStrategy in interface IlpContextpublic IlpTypeConverter getTypeConverter()
getTypeConverter in interface IlpContextpublic IlpImageRepository getImageRepository()
getImageRepository in interface IlpContextpublic IlpClassLoaderService getClassLoaderService()
(IlpClassLoaderService)getService(IlpClassLoaderService.class)getClassLoaderService in interface IlpContextpublic IlpMonitoringService getMonitoringService()
Note: Calling this method is equivalent to the following code:
 (IlpMonitoringService)getService(IlpMonitoringService.class)
getMonitoringService in interface IlpContextpublic void setDeploymentFile(String newDeploymentFile)
DeploymentFile value and applies it to this context, using
 the document base.newDeploymentFile - The new DeploymentFile value.public String getDocumentBase()
public void setDocumentBase(String newDocumentBase)
newDocumentBase - The new DocumentBase value. This value
                        should be an URL or a complete directory path.protected IlpURLAccessService createURLAccessService()
IlpURLAccessService to be used
 by this context.
 
 This method is called only by the constructor.
IlpDefaultURLAccessServiceprotected IlSynchronizationStrategy createSynchronizationStrategy()
IlSynchronizationStrategy to be used by
 this context.IlSynchronizationStrategy.GetDefault()protected IlpBlinkingManager createBlinkingManager()
IlpBlinkingManager to be used by
 this context.null as by default a blinking manager is not
         specifiedprotected IlpClassLoaderService createClassLoaderService()
IlpClassLoaderService to be used
 by this context.
 
 This method is called only by the constructor.
IlpDefaultClassLoaderServiceprotected IlpClassManager createClassManager()
IlpClassManager to be used
 by this context.
 
 This method is called only by the constructor.
IlpDefaultClassManagerprotected IlpDataSourceManager createDataSourceManager()
IlpDataSourceManager to be
 used by this context.
 This method is called only by the constructor.
IlpDefaultDataSourceManagerprotected IlpImageRepository createImageRepository()
IlpImageRepository to be used
 by this context.
 This method is called only by the constructor.
IlpDefaultImageRepositoryprotected IlpInteractorManager createInteractorManager()
IlpInteractorManager to be used
 by this context.
 This method is called only by the constructor.
IlpDefaultInteractorManagerprotected IlpTypeConverter createTypeConverter()
IlpTypeConverter to be used by this
 context.
 This method is called only by the constructor.
IlpDefaultTypeConverterprotected IlpMonitoringService createMonitoringService()
IlpMonitoringService to be used
 by this context.
 This method is called only by the constructor.
IlpDefaultMonitoringService© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.