org.apache.geronimo.corba.deployment
Class CorbaModuleBuilderExtension

java.lang.Object
  extended by org.apache.geronimo.corba.deployment.CorbaModuleBuilderExtension
All Implemented Interfaces:
GBeanLifecycle, ModuleBuilderExtension

public class CorbaModuleBuilderExtension
extends Object
implements ModuleBuilderExtension, GBeanLifecycle


Field Summary
protected  Environment defaultEnvironment
           
static GBeanInfo GBEAN_INFO
           
 
Constructor Summary
CorbaModuleBuilderExtension()
           
CorbaModuleBuilderExtension(Environment defaultEnvironment)
           
 
Method Summary
 void addGBeans(EARContext earContext, Module module, ClassLoader cl, Collection repository)
          Add any GBeans to the deployment that might be required by the presence of tss-link definitions in the ejb plans.
 void createModule(Module module, Object plan, JarFile moduleFile, String targetPath, URL specDDUrl, Environment environment, Object moduleContextInfo, AbstractName earName, Naming naming, ModuleIDBuilder idBuilder)
          Early module creation.
 void doFail()
          Fails the GBean.
 void doStart()
          Starts the GBean.
 void doStop()
          Stops the target.
static GBeanInfo getGBeanInfo()
           
 void initContext(EARContext earContext, Module module, ClassLoader cl)
           
 void installModule(JarFile earFile, EARContext earContext, Module module, Collection configurationStores, ConfigurationStore targetConfigurationStore, Collection repository)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultEnvironment

protected Environment defaultEnvironment

GBEAN_INFO

public static final GBeanInfo GBEAN_INFO
Constructor Detail

CorbaModuleBuilderExtension

public CorbaModuleBuilderExtension()
                            throws Exception
Throws:
Exception

CorbaModuleBuilderExtension

public CorbaModuleBuilderExtension(Environment defaultEnvironment)
Method Detail

doStart

public void doStart()
             throws Exception
Description copied from interface: GBeanLifecycle
Starts the GBean. This informs the GBean that it is about to transition to the running state.

Specified by:
doStart in interface GBeanLifecycle
Throws:
Exception - if the target failed to start; this will cause a transition to the failed state

doStop

public void doStop()
Description copied from interface: GBeanLifecycle
Stops the target. This informs the GBean that it is about to transition to the stopped state.

Specified by:
doStop in interface GBeanLifecycle

doFail

public void doFail()
Description copied from interface: GBeanLifecycle
Fails the GBean. This informs the GBean that it is about to transition to the failed state.

Specified by:
doFail in interface GBeanLifecycle

createModule

public void createModule(Module module,
                         Object plan,
                         JarFile moduleFile,
                         String targetPath,
                         URL specDDUrl,
                         Environment environment,
                         Object moduleContextInfo,
                         AbstractName earName,
                         Naming naming,
                         ModuleIDBuilder idBuilder)
                  throws DeploymentException
Early module creation. If this module contains and CORBA enablement links, the corba default environment is merged in.

Specified by:
createModule in interface ModuleBuilderExtension
Parameters:
module - The module being deployed.
plan - The module plan
moduleFile - The jar file containing the module.
targetPath - The module path.
specDDUrl - The schema information.
environment - The current environment (used for the merge).
moduleContextInfo - The module context.
earName - The name of the ear file.
naming - The naming context.
idBuilder -
Throws:
DeploymentException

installModule

public void installModule(JarFile earFile,
                          EARContext earContext,
                          Module module,
                          Collection configurationStores,
                          ConfigurationStore targetConfigurationStore,
                          Collection repository)
                   throws DeploymentException
Specified by:
installModule in interface ModuleBuilderExtension
Throws:
DeploymentException

initContext

public void initContext(EARContext earContext,
                        Module module,
                        ClassLoader cl)
                 throws DeploymentException
Specified by:
initContext in interface ModuleBuilderExtension
Throws:
DeploymentException

addGBeans

public void addGBeans(EARContext earContext,
                      Module module,
                      ClassLoader cl,
                      Collection repository)
               throws DeploymentException
Add any GBeans to the deployment that might be required by the presence of tss-link definitions in the ejb plans.

Specified by:
addGBeans in interface ModuleBuilderExtension
Parameters:
earContext - The earContext of the module deployment.
module - The module being deployed.
cl - The module class loader instance.
repository - The repository.
Throws:
DeploymentException - Thrown if any of the tss-link information cannot be resolved (missing ejb or TSSBean).

getGBeanInfo

public static GBeanInfo getGBeanInfo()


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.