@Service public class DolProvider extends Object implements ApplicationMetaDataProvider<Application>, ApplicationInfoProvider
Modifier and Type | Field and Description |
---|---|
protected ApplicationArchivist |
applicationArchivist |
protected ApplicationFactory |
applicationFactory |
protected ArchiveFactory |
archiveFactory |
protected DescriptorArchivist |
descriptorArchivist |
Constructor and Description |
---|
DolProvider() |
Modifier and Type | Method and Description |
---|---|
MetaData |
getMetaData()
Returns the meta data assocated with this Deployer
|
String |
getNameFor(ReadableArchive archive,
DeploymentContext context)
return the name for the given application
|
protected void |
handleDeploymentPlan(File deploymentPlan,
Archivist archivist,
ReadableArchive sourceArchive,
ApplicationHolder holder) |
Application |
load(DeploymentContext dc)
Load the metadata associated with the deployment event
|
Application |
processDeploymentMetaData(ReadableArchive archive)
This method populates the Application object from a ReadableArchive
|
protected void |
saveAppDescriptor(Application application,
DeploymentContext context) |
@Inject protected ApplicationFactory applicationFactory
@Inject protected ArchiveFactory archiveFactory
@Inject protected DescriptorArchivist descriptorArchivist
@Inject protected ApplicationArchivist applicationArchivist
public MetaData getMetaData()
ApplicationMetaDataProvider
getMetaData
in interface ApplicationMetaDataProvider<Application>
public Application load(DeploymentContext dc) throws IOException
ApplicationMetaDataProvider
load
in interface ApplicationMetaDataProvider<Application>
dc
- the deployment contextIOException
- when the underlying archive cannot be processed correctlypublic String getNameFor(ReadableArchive archive, DeploymentContext context)
getNameFor
in interface ApplicationInfoProvider
archive
- context
- public Application processDeploymentMetaData(ReadableArchive archive) throws Exception
archive
- the archive for the applicationException
protected void handleDeploymentPlan(File deploymentPlan, Archivist archivist, ReadableArchive sourceArchive, ApplicationHolder holder) throws IOException
IOException
protected void saveAppDescriptor(Application application, DeploymentContext context) throws IOException
IOException
Copyright © 2021. All rights reserved.