org.glassfish.api.deployment
Interface ApplicationContext
- All Known Subinterfaces:
- DeploymentContext
public interface ApplicationContext
Useful services for application loading implementation
|
Method Summary |
java.util.Properties |
getAppProps()
Returns the application level properties that will be persisted as a
key value pair at then end of deployment. |
java.lang.ClassLoader |
getClassLoader()
Returns the class loader associated with the application. |
java.util.Properties |
getModuleProps()
Returns the module level properties that will be persisted as a
key value pair at then end of deployment. |
getClassLoader
java.lang.ClassLoader getClassLoader()
- Returns the class loader associated with the application.
ClassLoader instances are usually obtained by the getClassLoader API on
the associated ArchiveHandler for the archive type being deployed.
This can return null and the container should allocate a ClassLoader
while loading the application.
- Returns:
- a class loader capable of loading classes and resources from the
source
getAppProps
java.util.Properties getAppProps()
- Returns the application level properties that will be persisted as a
key value pair at then end of deployment. That allows individual
Deployers implementation to store some information at the
application level that should be available upon server restart.
Application level propertries are shared by all the modules.
- Returns:
- the application's properties.
getModuleProps
java.util.Properties getModuleProps()
- Returns the module level properties that will be persisted as a
key value pair at then end of deployment. That allows individual
Deployers implementation to store some information at the module
level that should be available upon server restart.
Module level properties are only visible to the current module.
- Returns:
- the module's properties.
Copyright © 2012 GlassFish Community. All Rights Reserved.