org.apache.servicemix.geronimo
Class ServiceMixConfigBuilder

java.lang.Object
  extended by org.apache.servicemix.geronimo.ServiceMixConfigBuilder
All Implemented Interfaces:
org.apache.geronimo.deployment.ConfigurationBuilder

public class ServiceMixConfigBuilder
extends java.lang.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, java.util.Collection repositories, org.apache.geronimo.kernel.Kernel kernel)
           
 
Method Summary
protected  void buildComponent(Descriptor descriptor, org.apache.geronimo.deployment.DeploymentContext context, java.util.jar.JarFile module)
           
 org.apache.geronimo.deployment.DeploymentContext buildConfiguration(boolean inPlaceDeployment, org.apache.geronimo.kernel.repository.Artifact configId, java.lang.Object plan, java.util.jar.JarFile jarFile, java.util.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, java.util.jar.JarFile module)
           
protected  void buildSharedLibrary(Descriptor descriptor, org.apache.geronimo.deployment.DeploymentContext context, java.util.jar.JarFile module)
           
protected  org.apache.geronimo.gbean.AbstractNameQuery getComponentName(java.lang.String name)
           
 org.apache.geronimo.kernel.repository.Artifact getConfigurationID(java.lang.Object plan, java.util.jar.JarFile module, org.apache.geronimo.deployment.ModuleIDBuilder idBuilder)
          Checks what configuration URL will be used for the provided module.
 java.lang.Object getDeploymentPlan(java.io.File planFile, java.util.jar.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, java.util.jar.JarFile module, java.net.URI targetUri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
Constructor Detail

ServiceMixConfigBuilder

public ServiceMixConfigBuilder(org.apache.geronimo.kernel.repository.Environment defaultEnvironment,
                               org.apache.geronimo.gbean.AbstractNameQuery containerName,
                               java.util.Collection repositories,
                               org.apache.geronimo.kernel.Kernel kernel)
Method Detail

getGBeanInfo

public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()

getDeploymentPlan

public java.lang.Object getDeploymentPlan(java.io.File planFile,
                                          java.util.jar.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 null
module - 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(java.lang.Object plan,
                                                                         java.util.jar.JarFile module,
                                                                         org.apache.geronimo.deployment.ModuleIDBuilder idBuilder)
                                                                  throws java.io.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 plan
module - the module to build
Returns:
the ID that will be used for the Configuration
Throws:
java.io.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,
                                                                           java.lang.Object plan,
                                                                           java.util.jar.JarFile jarFile,
                                                                           java.util.Collection configurationStores,
                                                                           org.apache.geronimo.kernel.repository.ArtifactResolver artifactResolver,
                                                                           org.apache.geronimo.kernel.config.ConfigurationStore targetConfigurationStore)
                                                                    throws java.io.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 -
jarFile -
configurationStores -
artifactResolver -
targetConfigurationStore -
Returns:
the DeploymentContext information
Throws:
java.io.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,
                              java.util.jar.JarFile module)
                       throws java.lang.Exception
Throws:
java.lang.Exception

buildServiceAssembly

protected void buildServiceAssembly(Descriptor descriptor,
                                    org.apache.geronimo.deployment.DeploymentContext context,
                                    java.util.jar.JarFile module)
                             throws java.lang.Exception
Throws:
java.lang.Exception

buildSharedLibrary

protected void buildSharedLibrary(Descriptor descriptor,
                                  org.apache.geronimo.deployment.DeploymentContext context,
                                  java.util.jar.JarFile module)
                           throws java.lang.Exception
Throws:
java.lang.Exception

unzip

protected void unzip(org.apache.geronimo.deployment.DeploymentContext context,
                     java.util.jar.JarFile module,
                     java.net.URI targetUri)
              throws java.io.IOException
Throws:
java.io.IOException

getComponentName

protected org.apache.geronimo.gbean.AbstractNameQuery getComponentName(java.lang.String name)
                                                                throws javax.management.MalformedObjectNameException
Throws:
javax.management.MalformedObjectNameException


Copyright © 2005-2011 The Apache Software Foundation. All Rights Reserved.