@Service public class OSGiDeployer extends Object implements Deployer<OSGiContainer,OSGiDeployedBundle>
Constructor and Description |
---|
OSGiDeployer() |
Modifier and Type | Method and Description |
---|---|
void |
clean(DeploymentContext context)
Clean any files and artifacts that were created during the execution
of the prepare method.
|
MetaData |
getMetaData()
Returns the meta data associated with this Deployer
|
OSGiDeployedBundle |
load(OSGiContainer container,
DeploymentContext context)
Loads a previously prepared application in its execution environment and
return a ContractProvider instance that will identify this environment in
future communications with the application's container runtime.
|
<V> V |
loadMetaData(Class<V> type,
DeploymentContext context)
Loads the meta date associated with the application.
|
boolean |
prepare(DeploymentContext context)
Prepares the application bits for running in the application server.
|
void |
unload(OSGiDeployedBundle appContainer,
DeploymentContext context)
Unload or stop a previously running application identified with the
ContractProvider instance.
|
public OSGiDeployedBundle load(OSGiContainer container, DeploymentContext context)
Deployer
load
in interface Deployer<OSGiContainer,OSGiDeployedBundle>
container
- in which the application will residecontext
- of the deploymentpublic void unload(OSGiDeployedBundle appContainer, DeploymentContext context)
Deployer
unload
in interface Deployer<OSGiContainer,OSGiDeployedBundle>
appContainer
- instance to be stoppedcontext
- of the undeploymentpublic void clean(DeploymentContext context)
Deployer
clean
in interface Deployer<OSGiContainer,OSGiDeployedBundle>
context
- deployment contextpublic MetaData getMetaData()
Deployer
getMetaData
in interface Deployer<OSGiContainer,OSGiDeployedBundle>
public <V> V loadMetaData(Class<V> type, DeploymentContext context)
Deployer
loadMetaData
in interface Deployer<OSGiContainer,OSGiDeployedBundle>
type
- type of meta-data that this deployer has declared providing.public boolean prepare(DeploymentContext context)
Deployer
prepare
in interface Deployer<OSGiContainer,OSGiDeployedBundle>
context
- of the deploymentCopyright © 2021. All rights reserved.