|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.deployment.service.ServiceConfigBuilder
public class ServiceConfigBuilder
Field Summary | |
---|---|
static GBeanInfo |
GBEAN_INFO
|
static String |
SERVICE_MODULE
|
Fields inherited from interface org.apache.geronimo.deployment.ConfigurationBuilder |
---|
CONFIG_BUILDER |
Constructor Summary | |
---|---|
ServiceConfigBuilder(Environment defaultEnvironment,
Collection repositories,
Collection serviceBuilders,
Kernel kernel)
|
|
ServiceConfigBuilder(Environment defaultEnvironment,
Collection repositories,
Collection serviceBuilders,
Naming naming)
|
|
ServiceConfigBuilder(Environment defaultEnvironment,
Collection repositories,
Naming naming)
|
Method Summary | |
---|---|
DeploymentContext |
buildConfiguration(boolean inPlaceDeployment,
Artifact configId,
ModuleType moduleType,
JarFile jar,
Collection configurationStores,
ArtifactResolver artifactResolver,
ConfigurationStore targetConfigurationStore)
|
DeploymentContext |
buildConfiguration(boolean inPlaceDeployment,
Artifact configId,
Object plan,
JarFile jar,
Collection configurationStores,
ArtifactResolver artifactResolver,
ConfigurationStore targetConfigurationStore)
Build a configuration from a local file |
void |
doFail()
Fails the GBean. |
void |
doStart()
Starts the GBean. |
void |
doStop()
Stops the target. |
Artifact |
getConfigurationID(Object plan,
JarFile module,
ModuleIDBuilder idBuilder)
Checks what configuration URL will be used for the provided module. |
Object |
getDeploymentPlan(File planFile,
JarFile jarFile,
ModuleIDBuilder idBuilder)
Builds a deployment plan specific to this builder from a planFile and/or module if this builder can process it. |
static GBeanInfo |
getGBeanInfo()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SERVICE_MODULE
public static final GBeanInfo GBEAN_INFO
Constructor Detail |
---|
public ServiceConfigBuilder(Environment defaultEnvironment, Collection repositories, Naming naming)
public ServiceConfigBuilder(Environment defaultEnvironment, Collection repositories, Collection serviceBuilders, Kernel kernel)
public ServiceConfigBuilder(Environment defaultEnvironment, Collection repositories, Collection serviceBuilders, Naming naming)
Method Detail |
---|
public void doStart() throws Exception
GBeanLifecycle
doStart
in interface GBeanLifecycle
Exception
- if the target failed to start; this will cause a transition to the failed statepublic void doStop()
GBeanLifecycle
doStop
in interface GBeanLifecycle
public void doFail()
GBeanLifecycle
doFail
in interface GBeanLifecycle
public Object getDeploymentPlan(File planFile, JarFile jarFile, ModuleIDBuilder idBuilder) throws DeploymentException
ConfigurationBuilder
getDeploymentPlan
in interface ConfigurationBuilder
planFile
- the deployment plan to examine; can be nulljarFile
- the URL of the module to examine; can be null
DeploymentException
- if there was a problem with the configurationpublic Artifact getConfigurationID(Object plan, JarFile module, ModuleIDBuilder idBuilder) throws IOException, DeploymentException
ConfigurationBuilder
getConfigurationID
in interface ConfigurationBuilder
plan
- the deployment planmodule
- the module to build
IOException
- if there was a problem reading or writing the files
DeploymentException
- if there was a problem with the configurationpublic DeploymentContext buildConfiguration(boolean inPlaceDeployment, Artifact configId, Object plan, JarFile jar, Collection configurationStores, ArtifactResolver artifactResolver, ConfigurationStore targetConfigurationStore) throws IOException, DeploymentException
ConfigurationBuilder
buildConfiguration
in interface ConfigurationBuilder
inPlaceDeployment
- true if the deployment is in-place.plan
- the deployment planjar
- the module to build
IOException
- if there was a problem reading or writing the files
DeploymentException
- if there was a problem with the configurationpublic DeploymentContext buildConfiguration(boolean inPlaceDeployment, Artifact configId, ModuleType moduleType, JarFile jar, Collection configurationStores, ArtifactResolver artifactResolver, ConfigurationStore targetConfigurationStore) throws DeploymentException, IOException
DeploymentException
IOException
public static GBeanInfo getGBeanInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |