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
IlpBlinkingManager to be used by
this context. |
protected IlpClassLoaderService |
createClassLoaderService()
Creates a
IlpClassLoaderService to be used
by this context. |
protected IlpClassManager |
createClassManager()
Creates a
IlpClassManager to be used
by this context. |
protected IlpDataSourceManager |
createDataSourceManager()
Creates a
IlpDataSourceManager to be
used by this context. |
protected IlpImageRepository |
createImageRepository()
Creates a
IlpImageRepository to be used
by this context. |
protected IlpInteractorManager |
createInteractorManager()
Creates a
IlpInteractorManager to be used
by this context. |
protected IlpMonitoringService |
createMonitoringService()
Creates a
IlpMonitoringService to be used
by this context. |
protected IlSynchronizationStrategy |
createSynchronizationStrategy()
Creates a
IlSynchronizationStrategy to be used by
this context. |
protected IlpTypeConverter |
createTypeConverter()
Creates a
IlpTypeConverter to be used by this
context. |
protected IlpURLAccessService |
createURLAccessService()
Creates a
IlpURLAccessService to 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
DeploymentFile value 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 IlpContext
public void setLocale(Locale locale)
locale
- The locale used within this context.public Object getProperty(String name)
getProperty
in interface IlpContext
name
- 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 IlpContext
public IlpURLAccessService getURLAccessService()
(IlpURLAccessService)getService(IlpURLAccessService.class)
getURLAccessService
in interface IlpContext
public Object getService(Class serviceClass)
getService
in interface IlpContext
serviceClass
- The Java class to be implemented by the returned service.public Collection getServices()
getServices
in interface IlpContext
public 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 IlpContext
public IlpMutableDataSourceManager getDataSourceManager()
getDataSourceManager
in interface IlpContext
@Deprecated public IlpStyleManager getStyleManager()
getStyleManager
in interface IlpContext
public IlpMutableInteractorManager getInteractorManager()
getInteractorManager
in interface IlpContext
public IlpBlinkingManager getBlinkingManager()
getBlinkingManager
in interface IlpContext
public IlSynchronizationStrategy getSynchronizationStrategy()
getSynchronizationStrategy
in interface IlpContext
public IlpTypeConverter getTypeConverter()
getTypeConverter
in interface IlpContext
public IlpImageRepository getImageRepository()
getImageRepository
in interface IlpContext
public IlpClassLoaderService getClassLoaderService()
(IlpClassLoaderService)getService(IlpClassLoaderService.class)
getClassLoaderService
in interface IlpContext
public IlpMonitoringService getMonitoringService()
Note: Calling this method is equivalent to the following code:
(IlpMonitoringService)getService(IlpMonitoringService.class)
getMonitoringService
in interface IlpContext
public 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.
IlpDefaultURLAccessService
protected 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.
IlpDefaultClassLoaderService
protected IlpClassManager createClassManager()
IlpClassManager
to be used
by this context.
This method is called only by the constructor.
IlpDefaultClassManager
protected IlpDataSourceManager createDataSourceManager()
IlpDataSourceManager
to be
used by this context.
This method is called only by the constructor.
IlpDefaultDataSourceManager
protected IlpImageRepository createImageRepository()
IlpImageRepository
to be used
by this context.
This method is called only by the constructor.
IlpDefaultImageRepository
protected IlpInteractorManager createInteractorManager()
IlpInteractorManager
to be used
by this context.
This method is called only by the constructor.
IlpDefaultInteractorManager
protected IlpTypeConverter createTypeConverter()
IlpTypeConverter
to be used by this
context.
This method is called only by the constructor.
IlpDefaultTypeConverter
protected IlpMonitoringService createMonitoringService()
IlpMonitoringService
to be used
by this context.
This method is called only by the constructor.
IlpDefaultMonitoringService
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.