|
||||||||||
| 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(java.lang.Object metaData)
Stores a descriptor for the module in the context so other deployer's can have access to it. |
|
void |
addTransformer(java.lang.instrument.ClassFileTransformer transformer)
Add a new ClassFileTransformer to the context. |
|
void |
addTransientAppMetaData(java.lang.String metaDataKey,
java.lang.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 |
|
java.util.List<java.net.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(java.lang.Class<U> opsParamsType)
Returns the DeployCommand parameters |
|
java.lang.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. |
|
java.util.Map<java.lang.String,ArchiveHandler> |
getModuleArchiveHandlers()
Gets the archive handlers for modules |
|
java.util.Collection<java.lang.Object> |
getModuleMetadata()
Returns all the metadata associated with this deployment |
|
|
getModuleMetaData(java.lang.Class<T> metadataType)
Returns the meta data associated with a module type. |
|
java.util.Map<java.lang.String,java.util.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. |
|
java.io.File |
getScratchDir(java.lang.String subDirName)
Returns a scratch directory that can be used to store things in. |
|
ReadableArchive |
getSource()
Application bits, at the raw level. |
|
java.io.File |
getSourceDir()
Returns the directory where the original applications bits should be stored. |
|
java.util.Map<java.lang.String,java.lang.Object> |
getTransientAppMetadata()
Returns all the transient app metadata associated with this deployment |
|
|
getTransientAppMetaData(java.lang.String metaDataKey,
java.lang.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()
java.lang.ClassLoader getFinalClassLoader()
<U extends OpsParams> U getCommandParameters(java.lang.Class<U> opsParamsType)
opsParamsType - expected deployment operation parameters type.
java.io.File getScratchDir(java.lang.String subDirName)
subDirName - the sub directory name of the scratch dir
java.io.File getSourceDir()
void addModuleMetaData(java.lang.Object metaData)
metaData - the meta data itself<T> T getModuleMetaData(java.lang.Class<T> metadataType)
metadataType - type of the meta date.
java.util.Map<java.lang.String,ArchiveHandler> getModuleArchiveHandlers()
void addTransientAppMetaData(java.lang.String metaDataKey,
java.lang.Object metaData)
metaDataKey - key of the meta date.metaData - the meta data itself
<T> T getTransientAppMetaData(java.lang.String metaDataKey,
java.lang.Class<T> metadataType)
metaDataKey - key of the meta date.metadataType - type of the meta date.
void addTransformer(java.lang.instrument.ClassFileTransformer transformer)
transformer - the new class file transformer to register to the new application
class loader
java.lang.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.java.util.Collection<java.lang.Object> getModuleMetadata()
java.util.Map<java.lang.String,java.lang.Object> getTransientAppMetadata()
ArchiveHandler getArchiveHandler()
ReadableArchive getOriginalSource()
java.util.Map<java.lang.String,java.util.Properties> getModulePropsMap()
ActionReport getActionReport()
java.util.List<java.net.URI> getAppLibs()
throws java.net.URISyntaxException
java.net.URISyntaxException - when unable to get the library URIs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||