public interface ExtendedDeploymentContext
extends org.glassfish.api.deployment.DeploymentContext
| Modifier and Type | Interface and Description |
|---|---|
static class |
ExtendedDeploymentContext.Phase |
| Modifier and Type | Field and Description |
|---|---|
static String |
IS_TEMP_CLASSLOADER |
static String |
TRACKER |
| Modifier and Type | Method and Description |
|---|---|
void |
clean() |
void |
createApplicationClassLoader(ClassLoaderHierarchy clh,
org.glassfish.api.deployment.archive.ArchiveHandler handler)
Create the final class loader.
|
void |
createDeploymentClassLoader(ClassLoaderHierarchy clh,
org.glassfish.api.deployment.archive.ArchiveHandler handler)
Create the deployment class loader.
|
File |
getAppAltDDDir()
Returns the alternate deployment descriptor directory for the
application (used for holding the external alternate deployment
descriptors).
|
File |
getAppInternalDir()
Returns the internal directory for the application (used for holding
the uploaded archive, for example).
|
Map<String,ExtendedDeploymentContext> |
getModuleDeploymentContexts()
Gets the deployment context for modules
|
String |
getModuleUri()
Gets the module uri for this module context
|
ExtendedDeploymentContext |
getParentContext()
Gets the parent context for this context
|
ExtendedDeploymentContext.Phase |
getPhase() |
String |
getTenant()
Returns the tenant, if one is valid for this DeploymentContext.
|
File |
getTenantDir()
Returns the directory containing the expanded tenant customization archive,
if this DC is for a tenant and if a customization archive was specified
when the tenant was provisioned.
|
List<ClassFileTransformer> |
getTransformers()
Returns the list of transformers registered to this context.
|
void |
postDeployClean(boolean isFinalClean)
Performs any clean-up of the deployment context after deployment has
finished.
|
void |
prepareScratchDirs()
Prepare the scratch directories, creating the directories
if they do not exist
|
void |
setArchiveHandler(org.glassfish.api.deployment.archive.ArchiveHandler archiveHandler)
Sets the archive handler that's associated with this context
|
void |
setClassLoader(ClassLoader cloader)
Sets the classloader
|
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
|
void |
setPhase(ExtendedDeploymentContext.Phase newPhase)
Sets the phase of the deployment activity.
|
void |
setSource(org.glassfish.api.deployment.archive.ReadableArchive source)
Sets the source archive
|
void |
setTenant(String tenant,
String appName)
Sets the tenant to which this deployment context applies.
|
addModuleMetaData, addTransformer, addTransientAppMetaData, getActionReport, getAppLibs, getArchiveHandler, getCommandParameters, getFinalClassLoader, getModuleArchiveHandlers, getModuleMetadata, getModuleMetaData, getModulePropsMap, getOriginalSource, getScratchDir, getSource, getSourceDir, getTransientAppMetadata, getTransientAppMetaDatastatic final String IS_TEMP_CLASSLOADER
static final String TRACKER
void setPhase(ExtendedDeploymentContext.Phase newPhase)
newPhase - ExtendedDeploymentContext.Phase getPhase()
List<ClassFileTransformer> getTransformers()
void createDeploymentClassLoader(ClassLoaderHierarchy clh, org.glassfish.api.deployment.archive.ArchiveHandler handler) throws URISyntaxException, MalformedURLException
clh - the hierarchy of class loader for the parenthandler - the archive handler for the source archiveURISyntaxExceptionMalformedURLExceptionvoid createApplicationClassLoader(ClassLoaderHierarchy clh, org.glassfish.api.deployment.archive.ArchiveHandler handler) throws URISyntaxException, MalformedURLException
clh - the hierarchy of class loader for the parenthandler - the archive handler for the source archiveURISyntaxExceptionMalformedURLExceptionvoid clean()
void setArchiveHandler(org.glassfish.api.deployment.archive.ArchiveHandler archiveHandler)
archiveHandler - void setSource(org.glassfish.api.deployment.archive.ReadableArchive source)
props - void setModulePropsMap(Map<String,Properties> modulePropsMap)
modulePropsMap - Map<String,ExtendedDeploymentContext> getModuleDeploymentContexts()
void setClassLoader(ClassLoader cloader)
cloader - void setParentContext(ExtendedDeploymentContext parentContext)
parentContext - String getModuleUri()
void setModuleUri(String moduleUri)
moduleUri - ExtendedDeploymentContext getParentContext()
File getAppInternalDir()
File getAppAltDDDir()
String getTenant()
void setTenant(String tenant, String appName)
tenantName - the name of the tenantappName - the name of the applicationFile getTenantDir()
void postDeployClean(boolean isFinalClean)
This method can be invoked either with "true", meaning that this is the final clean-up for the DC, or with "false," meaning that the DC implementation should be selective. (Some data is used, for instance, in the DeployCommand logic after ApplicationLifeCycle.deploy has completed.)
isFinalClean - whether this clean is the final clean or a selective one.void prepareScratchDirs()
throws IOException
IOExceptionCopyright © 2014. All rights reserved.