|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.deployment.common.DeploymentContextImpl
public class DeploymentContextImpl
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.glassfish.internal.deployment.ExtendedDeploymentContext |
|---|
ExtendedDeploymentContext.Phase |
| Field Summary |
|---|
| Fields inherited from interface org.glassfish.internal.deployment.ExtendedDeploymentContext |
|---|
IS_TEMP_CLASSLOADER, TRACKER |
| Constructor Summary | |
|---|---|
DeploymentContextImpl(ActionReport actionReport,
Logger logger,
ReadableArchive source,
OpsParams params,
ServerEnvironment env)
|
|
DeploymentContextImpl(Deployment.DeploymentContextBuilder builder,
ServerEnvironment env)
Creates a new instance of DeploymentContext |
|
| Method Summary | ||
|---|---|---|
void |
addModuleMetaData(Object metaData)
|
|
void |
addTransformer(ClassFileTransformer transformer)
Add a new ClassFileTransformer to the context |
|
void |
addTransientAppMetaData(String metaDataKey,
Object metaData)
|
|
void |
clean()
|
|
void |
createApplicationClassLoader(ClassLoaderHierarchy clh,
ArchiveHandler handler)
|
|
void |
createDeploymentClassLoader(ClassLoaderHierarchy clh,
ArchiveHandler handler)
|
|
ActionReport |
getActionReport()
Gets the action report for this context |
|
File |
getAppInternalDir()
|
|
List<URI> |
getAppLibs()
|
|
Properties |
getAppProps()
Returns the application level properties that will be persisted as a key value pair at then end of deployment. |
|
ArchiveHandler |
getArchiveHandler()
|
|
ClassLoader |
getClassLoader()
Returns the class loader associated to this deployment request. |
|
ClassLoader |
getClassLoader(boolean sharable)
|
|
|
getCommandParameters(Class<U> commandParametersType)
|
|
ClassLoader |
getFinalClassLoader()
Returns the class loader associated to this deployment request. |
|
Logger |
getLogger()
|
|
Map<String,ArchiveHandler> |
getModuleArchiveHandlers()
Gets the archive handlers for modules |
|
Map<String,ExtendedDeploymentContext> |
getModuleDeploymentContexts()
Gets the deployment context for modules |
|
Collection<Object> |
getModuleMetadata()
|
|
|
getModuleMetaData(Class<T> metadataType)
|
|
Properties |
getModuleProps()
Returns the module level properties that will be persisted as a key value pair at then end of deployment. |
|
Map<String,Properties> |
getModulePropsMap()
Gets the module properties for modules |
|
String |
getModuleUri()
Gets the module uri for this module context |
|
ReadableArchive |
getOriginalSource()
|
|
ExtendedDeploymentContext |
getParentContext()
Gets the parent context of the module |
|
ExtendedDeploymentContext.Phase |
getPhase()
|
|
File |
getScratchDir(String subDirName)
Returns a scratch directory that can be used to store things in. |
|
ReadableArchive |
getSource()
|
|
File |
getSourceDir()
|
|
List<ClassFileTransformer> |
getTransformers()
Returns the list of transformers registered to this context. |
|
Map<String,Object> |
getTransientAppMetadata()
|
|
|
getTransientAppMetaData(String key,
Class<T> metadataType)
|
|
void |
postDeployClean(boolean isFinalClean)
|
|
void |
preDestroy()
|
|
void |
prepareScratchDirs()
Prepare the scratch directories, creating the directories if they do not exist |
|
void |
setArchiveHandler(ArchiveHandler archiveHandler)
|
|
void |
setClassLoader(ClassLoader cloader)
|
|
void |
setModulePropsMap(Map<String,Properties> modulePropsMap)
Sets the module properties for modules |
|
void |
setModuleUri(String moduleUri)
Sets the module uri for this module context |
|
void |
setParentContext(ExtendedDeploymentContext parentContext)
Sets the parent context for the module |
|
void |
setPhase(ExtendedDeploymentContext.Phase newPhase)
|
|
void |
setSource(ReadableArchive source)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeploymentContextImpl(Deployment.DeploymentContextBuilder builder,
ServerEnvironment env)
public DeploymentContextImpl(ActionReport actionReport,
Logger logger,
ReadableArchive source,
OpsParams params,
ServerEnvironment env)
| Method Detail |
|---|
public ExtendedDeploymentContext.Phase getPhase()
getPhase in interface ExtendedDeploymentContextpublic void setPhase(ExtendedDeploymentContext.Phase newPhase)
setPhase in interface ExtendedDeploymentContextpublic ReadableArchive getSource()
getSource in interface DeploymentContextpublic void setSource(ReadableArchive source)
setSource in interface ExtendedDeploymentContextpublic <U extends OpsParams> U getCommandParameters(Class<U> commandParametersType)
getCommandParameters in interface DeploymentContextpublic Logger getLogger()
getLogger in interface ExecutionContextpublic void preDestroy()
preDestroy in interface org.glassfish.hk2.PreDestroypublic ClassLoader getFinalClassLoader()
getFinalClassLoader in interface DeploymentContextpublic ClassLoader getClassLoader()
getClassLoader in interface ApplicationContextpublic void setClassLoader(ClassLoader cloader)
setClassLoader in interface ExtendedDeploymentContext
public void createDeploymentClassLoader(ClassLoaderHierarchy clh,
ArchiveHandler handler)
throws URISyntaxException,
MalformedURLException
createDeploymentClassLoader in interface ExtendedDeploymentContextURISyntaxException
MalformedURLException
public void createApplicationClassLoader(ClassLoaderHierarchy clh,
ArchiveHandler handler)
throws URISyntaxException,
MalformedURLException
createApplicationClassLoader in interface ExtendedDeploymentContextURISyntaxException
MalformedURLExceptionpublic ClassLoader getClassLoader(boolean sharable)
public File getScratchDir(String subDirName)
getScratchDir in interface DeploymentContextsubDirName - the sub directory name of the scratch dir
public File getSourceDir()
getSourceDir in interface DeploymentContextpublic void addModuleMetaData(Object metaData)
addModuleMetaData in interface DeploymentContextpublic <T> T getModuleMetaData(Class<T> metadataType)
getModuleMetaData in interface DeploymentContextpublic Collection<Object> getModuleMetadata()
getModuleMetadata in interface DeploymentContextpublic Map<String,Object> getTransientAppMetadata()
getTransientAppMetadata in interface DeploymentContext
public void addTransientAppMetaData(String metaDataKey,
Object metaData)
addTransientAppMetaData in interface DeploymentContext
public <T> T getTransientAppMetaData(String key,
Class<T> metadataType)
getTransientAppMetaData in interface DeploymentContextpublic Properties getAppProps()
getAppProps in interface ApplicationContextpublic Properties getModuleProps()
getModuleProps in interface ApplicationContextpublic void addTransformer(ClassFileTransformer transformer)
addTransformer in interface DeploymentContexttransformer - 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 byteocode enhancement feature.public List<ClassFileTransformer> getTransformers()
getTransformers in interface ExtendedDeploymentContext
public List<URI> getAppLibs()
throws URISyntaxException
getAppLibs in interface DeploymentContextURISyntaxExceptionpublic void clean()
clean in interface ExtendedDeploymentContextpublic ArchiveHandler getArchiveHandler()
getArchiveHandler in interface DeploymentContextpublic void setArchiveHandler(ArchiveHandler archiveHandler)
setArchiveHandler in interface ExtendedDeploymentContextpublic ReadableArchive getOriginalSource()
getOriginalSource in interface DeploymentContextpublic Map<String,Properties> getModulePropsMap()
getModulePropsMap in interface DeploymentContextpublic void setModulePropsMap(Map<String,Properties> modulePropsMap)
setModulePropsMap in interface ExtendedDeploymentContextmodulePropsMap - public void setParentContext(ExtendedDeploymentContext parentContext)
setParentContext in interface ExtendedDeploymentContextparentContext - public ExtendedDeploymentContext getParentContext()
getParentContext in interface ExtendedDeploymentContextpublic String getModuleUri()
getModuleUri in interface ExtendedDeploymentContextpublic void setModuleUri(String moduleUri)
setModuleUri in interface ExtendedDeploymentContextmoduleUri - public Map<String,ArchiveHandler> getModuleArchiveHandlers()
getModuleArchiveHandlers in interface DeploymentContextpublic Map<String,ExtendedDeploymentContext> getModuleDeploymentContexts()
getModuleDeploymentContexts in interface ExtendedDeploymentContextpublic ActionReport getActionReport()
getActionReport in interface DeploymentContextpublic File getAppInternalDir()
getAppInternalDir in interface ExtendedDeploymentContextpublic void postDeployClean(boolean isFinalClean)
postDeployClean in interface ExtendedDeploymentContext
public void prepareScratchDirs()
throws IOException
prepareScratchDirs in interface ExtendedDeploymentContextIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||