org.apache.geronimo.openejb.deployment
Class EjbModuleBuilder
java.lang.Object
org.apache.geronimo.openejb.deployment.EjbModuleBuilder
- All Implemented Interfaces:
- GBeanLifecycle, ModuleBuilder, ModuleBuilderExtension
@GBean(j2eeType="ModuleBuilder")
public class EjbModuleBuilder
- extends Object
- implements ModuleBuilder, GBeanLifecycle, ModuleBuilderExtension
Master builder for processing EJB JAR deployments and creating the
corresponding runtime objects (GBeans, etc.).
Acts as either a ModuleBuilder (for standalone ejb jars or ejb jars in an ear) or as a ModuleBuilderExtension
for ejbs embedded in a web app.
- Version:
- $Revision: 1166214 $ $Date: 2011-09-07 23:10:16 +0800 (Wed, 07 Sep 2011) $
|
Method Summary |
void |
addGBeans(EARContext earContext,
Module module,
org.osgi.framework.Bundle bundle,
Collection repositories)
Does the meaty work of processing the deployment information and
creating GBeans for all the EJBs in the JAR, etc. |
Module |
createModule(org.osgi.framework.Bundle bundle,
Naming naming,
ModuleIDBuilder idBuilder)
|
Module |
createModule(File plan,
JarFile moduleFile,
Naming naming,
ModuleIDBuilder idBuilder)
|
void |
createModule(Module module,
org.osgi.framework.Bundle bundle,
Naming naming,
ModuleIDBuilder moduleIDBuilder)
|
void |
createModule(Module module,
Object plan,
JarFile moduleFile,
String targetPath,
URL specDDUrl,
Environment environment,
Object moduleContextInfo,
AbstractName earName,
Naming naming,
ModuleIDBuilder idBuilder)
|
Module |
createModule(Object plan,
JarFile moduleFile,
String targetPath,
URL specDDUrl,
Environment environment,
Object moduleContextInfo,
Module parentModule,
Naming naming,
ModuleIDBuilder idBuilder)
|
void |
doAddGBeans(EARContext earContext,
Module module,
org.osgi.framework.Bundle bundle,
Collection repositories)
|
void |
doFail()
|
void |
doStart()
|
void |
doStop()
|
String |
getSchemaNamespace()
|
void |
initContext(EARContext earContext,
Module module,
org.osgi.framework.Bundle bundle)
|
void |
installModule(JarFile earFile,
EARContext earContext,
Module module,
Collection configurationStores,
ConfigurationStore targetConfigurationStore,
Collection repository)
|
protected static void |
unmapReferences(org.apache.openejb.jee.EjbJar ejbJar,
org.apache.openejb.jee.oejb2.GeronimoEjbJarType geronimoEjbJarType)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EjbModuleBuilder
public EjbModuleBuilder(@ParamAttribute(name="defaultEnvironment")
Environment defaultEnvironment,
@ParamAttribute(name="defaultCmpJTADataSource")
String defaultCmpJTADataSource,
@ParamAttribute(name="defaultCmpNonJTADataSource")
String defaultCmpNonJTADataSource,
@ParamReference(name="ModuleBuilderExtensions",namingType="ModuleBuilder")
Collection<ModuleBuilderExtension> moduleBuilderExtensions,
@ParamReference(name="ServiceBuilders",namingType="ModuleBuilder")
Collection<NamespaceDrivenBuilder> serviceBuilders,
@ParamReference(name="NamingBuilders",namingType="ModuleBuilder")
NamingBuilder namingBuilders,
@ParamReference(name="ResourceEnvironmentSetter",namingType="ModuleBuilder")
ResourceEnvironmentSetter resourceEnvironmentSetter)
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
getSchemaNamespace
public String getSchemaNamespace()
- Specified by:
getSchemaNamespace in interface ModuleBuilder
createModule
public Module createModule(org.osgi.framework.Bundle bundle,
Naming naming,
ModuleIDBuilder idBuilder)
throws DeploymentException
- Specified by:
createModule in interface ModuleBuilder
- Throws:
DeploymentException
createModule
public Module createModule(File plan,
JarFile moduleFile,
Naming naming,
ModuleIDBuilder idBuilder)
throws DeploymentException
- Specified by:
createModule in interface ModuleBuilder
- Throws:
DeploymentException
createModule
public Module createModule(Object plan,
JarFile moduleFile,
String targetPath,
URL specDDUrl,
Environment environment,
Object moduleContextInfo,
Module parentModule,
Naming naming,
ModuleIDBuilder idBuilder)
throws DeploymentException
- Specified by:
createModule in interface ModuleBuilder
- Throws:
DeploymentException
createModule
public void createModule(Module module,
org.osgi.framework.Bundle bundle,
Naming naming,
ModuleIDBuilder moduleIDBuilder)
throws DeploymentException
- Specified by:
createModule in interface ModuleBuilderExtension
- Throws:
DeploymentException
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
- Specified by:
createModule in interface ModuleBuilderExtension
- Throws:
DeploymentException
unmapReferences
protected static void unmapReferences(org.apache.openejb.jee.EjbJar ejbJar,
org.apache.openejb.jee.oejb2.GeronimoEjbJarType geronimoEjbJarType)
installModule
public void installModule(JarFile earFile,
EARContext earContext,
Module module,
Collection configurationStores,
ConfigurationStore targetConfigurationStore,
Collection repository)
throws DeploymentException
- Specified by:
installModule in interface ModuleBuilder- Specified by:
installModule in interface ModuleBuilderExtension
- Throws:
DeploymentException
initContext
public void initContext(EARContext earContext,
Module module,
org.osgi.framework.Bundle bundle)
throws DeploymentException
- Specified by:
initContext in interface ModuleBuilder- Specified by:
initContext in interface ModuleBuilderExtension
- Throws:
DeploymentException
addGBeans
public void addGBeans(EARContext earContext,
Module module,
org.osgi.framework.Bundle bundle,
Collection repositories)
throws DeploymentException
- Does the meaty work of processing the deployment information and
creating GBeans for all the EJBs in the JAR, etc.
- Specified by:
addGBeans in interface ModuleBuilder- Specified by:
addGBeans in interface ModuleBuilderExtension
- Throws:
DeploymentException
doAddGBeans
public void doAddGBeans(EARContext earContext,
Module module,
org.osgi.framework.Bundle bundle,
Collection repositories)
throws DeploymentException
- Throws:
DeploymentException
Copyright © 2003-2011 The Apache Geronimo development community. All Rights Reserved.