Class DolProvider
- java.lang.Object
-
- org.glassfish.javaee.core.deployment.DolProvider
-
- All Implemented Interfaces:
ApplicationMetaDataProvider<Application>,ApplicationInfoProvider
@Service public class DolProvider extends Object implements ApplicationMetaDataProvider<Application>, ApplicationInfoProvider
ApplicationMetada
-
-
Field Summary
Fields Modifier and Type Field Description protected ApplicationArchivistapplicationArchivistprotected ApplicationFactoryapplicationFactoryprotected ArchiveFactoryarchiveFactoryprotected DescriptorArchivistdescriptorArchivist
-
Constructor Summary
Constructors Constructor Description DolProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetaDatagetMetaData()Returns the meta data assocated with this DeployerStringgetNameFor(ReadableArchive archive, DeploymentContext context)return the name for the given applicationprotected voidhandleDeploymentPlan(File deploymentPlan, Archivist archivist, ReadableArchive sourceArchive, ApplicationHolder holder)Applicationload(DeploymentContext dc)Load the metadata associated with the deployment eventApplicationprocessDeploymentMetaData(ReadableArchive archive)This method populates the Application object from a ReadableArchiveprotected voidsaveAppDescriptor(Application application, DeploymentContext context)
-
-
-
Field Detail
-
applicationFactory
@Inject protected ApplicationFactory applicationFactory
-
archiveFactory
@Inject protected ArchiveFactory archiveFactory
-
descriptorArchivist
@Inject protected DescriptorArchivist descriptorArchivist
-
applicationArchivist
@Inject protected ApplicationArchivist applicationArchivist
-
-
Method Detail
-
getMetaData
public MetaData getMetaData()
Description copied from interface:ApplicationMetaDataProviderReturns the meta data assocated with this Deployer- Specified by:
getMetaDatain interfaceApplicationMetaDataProvider<Application>- Returns:
- the meta data for this Deployer
-
load
public Application load(DeploymentContext dc) throws IOException
Description copied from interface:ApplicationMetaDataProviderLoad the metadata associated with the deployment event- Specified by:
loadin interfaceApplicationMetaDataProvider<Application>- Parameters:
dc- the deployment context- Returns:
- the loaded metadata
- Throws:
IOException- when the underlying archive cannot be processed correctly
-
getNameFor
public String getNameFor(ReadableArchive archive, DeploymentContext context)
return the name for the given application- Specified by:
getNameForin interfaceApplicationInfoProvider- Parameters:
archive-context-- Returns:
-
processDeploymentMetaData
public Application processDeploymentMetaData(ReadableArchive archive) throws Exception
This method populates the Application object from a ReadableArchive- Parameters:
archive- the archive for the application- Throws:
Exception
-
handleDeploymentPlan
protected void handleDeploymentPlan(File deploymentPlan, Archivist archivist, ReadableArchive sourceArchive, ApplicationHolder holder) throws IOException
- Throws:
IOException
-
saveAppDescriptor
protected void saveAppDescriptor(Application application, DeploymentContext context) throws IOException
- Throws:
IOException
-
-