|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DeploymentContext
Useful services for Deployer service implementation
| Method Summary | ||
|---|---|---|
void |
addModuleMetaData(Object metaData)
Stores a descriptor for the module in the context so other deployer's can have access to it. |
|
void |
addTransformer(ClassFileTransformer transformer)
Add a new ClassFileTransformer to the context. |
|
void |
addTransientAppMetaData(String metaDataKey,
Object metaData)
Stores application level metadata in the context so other deployer's can have access to it. |
|
ActionReport |
getActionReport()
Gets the action report for this context |
|
List<URI> |
getAppLibs()
gets the app-libs specified for this archive This list includes --libraries as well EXTENSION_LIST specified in the manifest entries |
|
ArchiveHandler |
getArchiveHandler()
Returns the archive handler that's associated with this context |
|
|
getCommandParameters(Class<U> opsParamsType)
Returns the DeployCommand parameters |
|
ClassLoader |
getFinalClassLoader()
During the prepare phase, when a deployer need to have access to the class loader that will be used to load the application in the runtime container, it can call this API during the prepare phase. |
|
Map<String,ArchiveHandler> |
getModuleArchiveHandlers()
Gets the archive handlers for modules |
|
Collection<Object> |
getModuleMetadata()
Returns all the metadata associated with this deployment |
|
|
getModuleMetaData(Class<T> metadataType)
Returns the meta data associated with a module type. |
|
Map<String,Properties> |
getModulePropsMap()
Gets the module properties for modules |
|
ReadableArchive |
getOriginalSource()
Gets the original source archive In case of archive deployment, this will return the archive before expanding. |
|
File |
getScratchDir(String subDirName)
Returns a scratch directory that can be used to store things in. |
|
ReadableArchive |
getSource()
Application bits, at the raw level. |
|
File |
getSourceDir()
Returns the directory where the original applications bits should be stored. |
|
Map<String,Object> |
getTransientAppMetadata()
Returns all the transient app metadata associated with this deployment |
|
|
getTransientAppMetaData(String metaDataKey,
Class<T> metadataType)
Returns the meta data for the given key |
|
| Methods inherited from interface org.glassfish.api.deployment.ApplicationContext |
|---|
getAppProps, getClassLoader, getModuleProps |
| Methods inherited from interface org.glassfish.api.ExecutionContext |
|---|
getLogger |
| Method Detail |
|---|
ReadableArchive getSource()
ClassLoader getFinalClassLoader()
<U extends OpsParams> U getCommandParameters(Class<U> opsParamsType)
opsParamsType - expected deployment operation parameters type.
File getScratchDir(String subDirName)
subDirName - the sub directory name of the scratch dir
File getSourceDir()
void addModuleMetaData(Object metaData)
metaData - the meta data itself<T> T getModuleMetaData(Class<T> metadataType)
metadataType - type of the meta date.
Map<String,ArchiveHandler> getModuleArchiveHandlers()
void addTransientAppMetaData(String metaDataKey,
Object metaData)
metaDataKey - key of the meta date.metaData - the meta data itself
<T> T getTransientAppMetaData(String metaDataKey,
Class<T> metadataType)
metaDataKey - key of the meta date.metadataType - type of the meta date.
void addTransformer(ClassFileTransformer transformer)
transformer - the new class file transformer to register to the new application
class loader
UnsupportedOperationException - if the class loader we use does not support the
registration of a ClassFileTransformer. In such case, the deployer should either fail
deployment or revert to a mode without the bytecode enhancement feature.Collection<Object> getModuleMetadata()
Map<String,Object> getTransientAppMetadata()
ArchiveHandler getArchiveHandler()
ReadableArchive getOriginalSource()
Map<String,Properties> getModulePropsMap()
ActionReport getActionReport()
List<URI> getAppLibs()
throws URISyntaxException
URISyntaxException - when unable to get the library URIs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||