public interface DeploymentContext extends ApplicationContext, ExecutionContext
Modifier and Type | Method and Description |
---|---|
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
|
<U extends OpsParams> |
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
|
<T> T |
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
|
<T> T |
getTransientAppMetaData(String metaDataKey,
Class<T> metadataType)
Returns the meta data for the given key
|
getAppProps, getClassLoader, getModuleProps
getLogger
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 dirFile 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 loaderUnsupportedOperationException
- 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 URIsCopyright © 2019. All rights reserved.