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 ApplicationArchivist
applicationArchivist
protected ApplicationFactory
applicationFactory
protected ArchiveFactory
archiveFactory
protected DescriptorArchivist
descriptorArchivist
-
Constructor Summary
Constructors Constructor Description DolProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetaData
getMetaData()
Returns the meta data assocated with this DeployerString
getNameFor(ReadableArchive archive, DeploymentContext context)
return the name for the given applicationprotected void
handleDeploymentPlan(File deploymentPlan, Archivist archivist, ReadableArchive sourceArchive, ApplicationHolder holder)
Application
load(DeploymentContext dc)
Load the metadata associated with the deployment eventApplication
processDeploymentMetaData(ReadableArchive archive)
This method populates the Application object from a ReadableArchiveprotected void
saveAppDescriptor(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:ApplicationMetaDataProvider
Returns the meta data assocated with this Deployer- Specified by:
getMetaData
in interfaceApplicationMetaDataProvider<Application>
- Returns:
- the meta data for this Deployer
-
load
public Application load(DeploymentContext dc) throws IOException
Description copied from interface:ApplicationMetaDataProvider
Load the metadata associated with the deployment event- Specified by:
load
in 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:
getNameFor
in 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
-
-