org.apache.geronimo.deployment.service
Class ServiceConfigBuilder
java.lang.Object
org.apache.geronimo.deployment.service.ServiceConfigBuilder
- All Implemented Interfaces:
- ConfigurationBuilder, GBeanLifecycle
@GBean(j2eeType="ConfigBuilder")
public class ServiceConfigBuilder
- extends Object
- implements ConfigurationBuilder, GBeanLifecycle
- Version:
- $Rev: 900657 $ $Date: 2010-01-19 11:39:45 +0800 (Tue, 19 Jan 2010) $
|
Constructor Summary |
ServiceConfigBuilder(Environment defaultEnvironment,
Collection<Repository> repositories,
Collection<NamespaceDrivenBuilder> serviceBuilders,
Kernel kernel,
org.osgi.framework.BundleContext bundleContext)
|
ServiceConfigBuilder(Environment defaultEnvironment,
Collection<Repository> repositories,
Collection<NamespaceDrivenBuilder> serviceBuilders,
Naming naming,
org.osgi.framework.BundleContext bundleContext)
|
ServiceConfigBuilder(Environment defaultEnvironment,
Collection<Repository> repositories,
Naming naming,
org.osgi.framework.BundleContext bundleContext)
|
|
Method Summary |
DeploymentContext |
buildConfiguration(boolean inPlaceDeployment,
Artifact configId,
Object plan,
JarFile jar,
Collection<ConfigurationStore> configurationStores,
ArtifactResolver artifactResolver,
ConfigurationStore targetConfigurationStore)
|
void |
doFail()
|
void |
doStart()
|
void |
doStop()
|
Artifact |
getConfigurationID(Object plan,
JarFile module,
ModuleIDBuilder idBuilder)
|
Object |
getDeploymentPlan(File planFile,
JarFile jarFile,
ModuleIDBuilder idBuilder)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERVICE_MODULE
public static final String SERVICE_MODULE
- See Also:
- Constant Field Values
ServiceConfigBuilder
public ServiceConfigBuilder(Environment defaultEnvironment,
Collection<Repository> repositories,
Naming naming,
org.osgi.framework.BundleContext bundleContext)
ServiceConfigBuilder
public ServiceConfigBuilder(@ParamAttribute(name="defaultEnvironment")
Environment defaultEnvironment,
@ParamReference(name="Repository",namingType="Repository")
Collection<Repository> repositories,
@ParamReference(name="ServiceBuilders",namingType="ModuleBuilder")
Collection<NamespaceDrivenBuilder> serviceBuilders,
@ParamSpecial(type=kernel)
Kernel kernel,
@ParamSpecial(type=bundleContext)
org.osgi.framework.BundleContext bundleContext)
throws GBeanNotFoundException
- Throws:
GBeanNotFoundException
ServiceConfigBuilder
public ServiceConfigBuilder(Environment defaultEnvironment,
Collection<Repository> repositories,
Collection<NamespaceDrivenBuilder> serviceBuilders,
Naming naming,
org.osgi.framework.BundleContext bundleContext)
doStart
public void doStart()
throws Exception
- Specified by:
doStart in interface GBeanLifecycle
- Throws:
Exception
doStop
public void doStop()
- Specified by:
doStop in interface GBeanLifecycle
doFail
public void doFail()
- Specified by:
doFail in interface GBeanLifecycle
getDeploymentPlan
public Object getDeploymentPlan(File planFile,
JarFile jarFile,
ModuleIDBuilder idBuilder)
throws DeploymentException
- Specified by:
getDeploymentPlan in interface ConfigurationBuilder
- Throws:
DeploymentException
getConfigurationID
public Artifact getConfigurationID(Object plan,
JarFile module,
ModuleIDBuilder idBuilder)
throws IOException,
DeploymentException
- Specified by:
getConfigurationID in interface ConfigurationBuilder
- Throws:
IOException
DeploymentException
buildConfiguration
public DeploymentContext buildConfiguration(boolean inPlaceDeployment,
Artifact configId,
Object plan,
JarFile jar,
Collection<ConfigurationStore> configurationStores,
ArtifactResolver artifactResolver,
ConfigurationStore targetConfigurationStore)
throws IOException,
DeploymentException
- Specified by:
buildConfiguration in interface ConfigurationBuilder
- Throws:
IOException
DeploymentException
Copyright © 2003-2011 The Apache Geronimo development community. All Rights Reserved.