org.apache.avalon.phoenix.components.deployer
Class DefaultDeployer
org.apache.avalon.phoenix.components.deployer.DefaultDeployer
- All Implemented Interfaces:
- Deployer, DeployerMBean
- public class DefaultDeployer
- implements Deployer, DeployerMBean
Deploy .sar files into a kernel using this class.
- Author:
- Peter Donald
Fields inherited from interface org.apache.avalon.phoenix.interfaces.Deployer |
ROLE |
Fields inherited from interface org.apache.avalon.phoenix.interfaces.DeployerMBean |
ROLE |
DefaultDeployer
public DefaultDeployer()
parameterize
public void parameterize(Parameters parameters)
throws ParameterException
- Retrieve parameter that specifies work directory.
- Parameters:
parameters
- the parameters to read- Throws:
ParameterException
- if invlaid work directory
service
public void service(ServiceManager serviceManager)
throws ServiceException
- Retrieve relevant services needed to deploy.
- Parameters:
serviceManager
- the ComponentManager- Throws:
ServiceException
- if an error occurs
initialize
public void initialize()
throws Exception
dispose
public void dispose()
- Dispose the dpeloyer which effectively means undeploying
all the currently deployed apps.
undeploy
public void undeploy(String name)
throws DeploymentException
- Undeploy an application.
- Specified by:
undeploy
in interface Deployer
- Parameters:
name
- the name of deployment- Throws:
DeploymentException
- if an error occurs
deploy
public void deploy(String name,
String sarURL)
throws DeploymentException
- Deploy an application from an installation.
- Specified by:
deploy
in interface DeployerMBean
- Parameters:
name
- the name of applicationsarURL
- the location to deploy from represented as String- Throws:
DeploymentException
- if an error occurs
deploy
public void deploy(String name,
URL location)
throws DeploymentException
- Deploy an application from an installation.
- Specified by:
deploy
in interface Deployer
- Parameters:
name
- the name of applicationlocation
- the location to deploy from- Throws:
DeploymentException
- if an error occurs
verify
protected void verify(SarMetaData metaData,
ClassLoader classLoader)
throws org.apache.excalibur.containerkit.verifier.VerifyException
- Verify that the application conforms to our requirements.
- Parameters:
metaData
- the application metaDataclassLoader
- the ClassLoader associated with app- Throws:
VerifyException
- on error
Copyright © 2001 Apache Jakarta Project. All Rights Reserved.