org.apache.servicemix.geronimo
Class ServiceMixConfigBuilder
java.lang.Object
org.apache.servicemix.geronimo.ServiceMixConfigBuilder
- All Implemented Interfaces:
- org.apache.geronimo.deployment.ConfigurationBuilder
public class ServiceMixConfigBuilder
- extends Object
- implements org.apache.geronimo.deployment.ConfigurationBuilder
|
Field Summary |
static org.apache.geronimo.gbean.GBeanInfo |
GBEAN_INFO
|
| Fields inherited from interface org.apache.geronimo.deployment.ConfigurationBuilder |
CONFIG_BUILDER |
|
Constructor Summary |
ServiceMixConfigBuilder(org.apache.geronimo.kernel.repository.Environment defaultEnvironment,
org.apache.geronimo.gbean.AbstractNameQuery containerName,
Collection repositories,
org.apache.geronimo.kernel.Kernel kernel)
|
|
Method Summary |
protected void |
buildComponent(Descriptor descriptor,
org.apache.geronimo.deployment.DeploymentContext context,
JarFile module)
|
org.apache.geronimo.deployment.DeploymentContext |
buildConfiguration(boolean inPlaceDeployment,
org.apache.geronimo.kernel.repository.Artifact configId,
Object plan,
JarFile jarFile,
Collection configurationStores,
org.apache.geronimo.kernel.repository.ArtifactResolver artifactResolver,
org.apache.geronimo.kernel.config.ConfigurationStore targetConfigurationStore)
Build a configuration from a local file |
protected void |
buildServiceAssembly(Descriptor descriptor,
org.apache.geronimo.deployment.DeploymentContext context,
JarFile module)
|
protected void |
buildSharedLibrary(Descriptor descriptor,
org.apache.geronimo.deployment.DeploymentContext context,
JarFile module)
|
protected org.apache.geronimo.gbean.AbstractNameQuery |
getComponentName(String name)
|
org.apache.geronimo.kernel.repository.Artifact |
getConfigurationID(Object plan,
JarFile module,
org.apache.geronimo.deployment.ModuleIDBuilder idBuilder)
Checks what configuration URL will be used for the provided module. |
Object |
getDeploymentPlan(File planFile,
JarFile module,
org.apache.geronimo.deployment.ModuleIDBuilder idBuilder)
Builds a deployment plan specific to this builder from a planFile and/or
module if this builder can process it. |
static org.apache.geronimo.gbean.GBeanInfo |
getGBeanInfo()
|
protected void |
unzip(org.apache.geronimo.deployment.DeploymentContext context,
JarFile module,
URI targetUri)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GBEAN_INFO
public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
ServiceMixConfigBuilder
public ServiceMixConfigBuilder(org.apache.geronimo.kernel.repository.Environment defaultEnvironment,
org.apache.geronimo.gbean.AbstractNameQuery containerName,
Collection repositories,
org.apache.geronimo.kernel.Kernel kernel)
getGBeanInfo
public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
getDeploymentPlan
public Object getDeploymentPlan(File planFile,
JarFile module,
org.apache.geronimo.deployment.ModuleIDBuilder idBuilder)
throws org.apache.geronimo.common.DeploymentException
- Builds a deployment plan specific to this builder from a planFile and/or
module if this builder can process it.
- Specified by:
getDeploymentPlan in interface org.apache.geronimo.deployment.ConfigurationBuilder
- Parameters:
planFile - the deployment plan to examine; can be nullmodule - the URL of the module to examine; can be null
- Returns:
- the deployment plan, or null if this builder can not handle the
module
- Throws:
org.apache.geronimo.common.DeploymentException - if there was a problem with the configuration
getConfigurationID
public org.apache.geronimo.kernel.repository.Artifact getConfigurationID(Object plan,
JarFile module,
org.apache.geronimo.deployment.ModuleIDBuilder idBuilder)
throws IOException,
org.apache.geronimo.common.DeploymentException
- Checks what configuration URL will be used for the provided module.
- Specified by:
getConfigurationID in interface org.apache.geronimo.deployment.ConfigurationBuilder
- Parameters:
plan - the deployment planmodule - the module to build
- Returns:
- the ID that will be used for the Configuration
- Throws:
IOException - if there was a problem reading or writing the files
org.apache.geronimo.common.DeploymentException - if there was a problem with the configuration
buildConfiguration
public org.apache.geronimo.deployment.DeploymentContext buildConfiguration(boolean inPlaceDeployment,
org.apache.geronimo.kernel.repository.Artifact configId,
Object plan,
JarFile jarFile,
Collection configurationStores,
org.apache.geronimo.kernel.repository.ArtifactResolver artifactResolver,
org.apache.geronimo.kernel.config.ConfigurationStore targetConfigurationStore)
throws IOException,
org.apache.geronimo.common.DeploymentException
- Build a configuration from a local file
- Specified by:
buildConfiguration in interface org.apache.geronimo.deployment.ConfigurationBuilder
- Parameters:
inPlaceDeployment - configId - plan - earFile - configurationStores - artifactResolver - targetConfigurationStore -
- Returns:
- the DeploymentContext information
- Throws:
IOException - if there was a problem reading or writing the files
org.apache.geronimo.common.DeploymentException - if there was a problem with the configuration
buildComponent
protected void buildComponent(Descriptor descriptor,
org.apache.geronimo.deployment.DeploymentContext context,
JarFile module)
throws Exception
- Throws:
Exception
buildServiceAssembly
protected void buildServiceAssembly(Descriptor descriptor,
org.apache.geronimo.deployment.DeploymentContext context,
JarFile module)
throws Exception
- Throws:
Exception
buildSharedLibrary
protected void buildSharedLibrary(Descriptor descriptor,
org.apache.geronimo.deployment.DeploymentContext context,
JarFile module)
throws Exception
- Throws:
Exception
unzip
protected void unzip(org.apache.geronimo.deployment.DeploymentContext context,
JarFile module,
URI targetUri)
throws IOException
- Throws:
IOException
getComponentName
protected org.apache.geronimo.gbean.AbstractNameQuery getComponentName(String name)
throws MalformedObjectNameException
- Throws:
MalformedObjectNameException
Copyright © 2005-2010 The Apache Software Foundation. All Rights Reserved.