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 java.lang.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: 1296084 $ $Date: 2012-03-02 16:37:16 +0800 (Fri, 02 Mar 2012) $
|
Method Summary |
void |
addGBeans(EARContext earContext,
Module module,
org.osgi.framework.Bundle bundle,
java.util.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(java.io.File plan,
java.util.jar.JarFile moduleFile,
Naming naming,
ModuleIDBuilder idBuilder)
|
void |
createModule(Module module,
org.osgi.framework.Bundle bundle,
Naming naming,
ModuleIDBuilder moduleIDBuilder)
|
void |
createModule(Module module,
java.lang.Object plan,
java.util.jar.JarFile moduleFile,
java.lang.String targetPath,
java.net.URL specDDUrl,
Environment environment,
java.lang.Object moduleContextInfo,
AbstractName earName,
Naming naming,
ModuleIDBuilder idBuilder)
|
Module |
createModule(java.lang.Object plan,
java.util.jar.JarFile moduleFile,
java.lang.String targetPath,
java.net.URL specDDUrl,
Environment environment,
java.lang.Object moduleContextInfo,
Module parentModule,
Naming naming,
ModuleIDBuilder idBuilder)
|
void |
doAddGBeans(EARContext earContext,
Module module,
org.osgi.framework.Bundle bundle,
java.util.Collection repositories)
|
void |
doFail()
|
void |
doStart()
|
void |
doStop()
|
java.lang.String |
getSchemaNamespace()
|
void |
initContext(EARContext earContext,
Module module,
org.osgi.framework.Bundle bundle)
|
void |
installModule(java.util.jar.JarFile earFile,
EARContext earContext,
Module module,
java.util.Collection configurationStores,
ConfigurationStore targetConfigurationStore,
java.util.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")
java.lang.String defaultCmpJTADataSource,
@ParamAttribute(name="defaultCmpNonJTADataSource")
java.lang.String defaultCmpNonJTADataSource,
@ParamReference(name="ModuleBuilderExtensions",namingType="ModuleBuilder")
java.util.Collection<ModuleBuilderExtension> moduleBuilderExtensions,
@ParamReference(name="ServiceBuilders",namingType="ModuleBuilder")
java.util.Collection<NamespaceDrivenBuilder> serviceBuilders,
@ParamReference(name="NamingBuilders",namingType="ModuleBuilder")
NamingBuilder namingBuilders,
@ParamReference(name="ResourceEnvironmentSetter",namingType="ModuleBuilder")
ResourceEnvironmentSetter resourceEnvironmentSetter)
doStart
public void doStart()
throws java.lang.Exception
- Specified by:
doStart in interface GBeanLifecycle
- Throws:
java.lang.Exception
doStop
public void doStop()
- Specified by:
doStop in interface GBeanLifecycle
doFail
public void doFail()
- Specified by:
doFail in interface GBeanLifecycle
getSchemaNamespace
public java.lang.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(java.io.File plan,
java.util.jar.JarFile moduleFile,
Naming naming,
ModuleIDBuilder idBuilder)
throws DeploymentException
- Specified by:
createModule in interface ModuleBuilder
- Throws:
DeploymentException
createModule
public Module createModule(java.lang.Object plan,
java.util.jar.JarFile moduleFile,
java.lang.String targetPath,
java.net.URL specDDUrl,
Environment environment,
java.lang.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,
java.lang.Object plan,
java.util.jar.JarFile moduleFile,
java.lang.String targetPath,
java.net.URL specDDUrl,
Environment environment,
java.lang.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(java.util.jar.JarFile earFile,
EARContext earContext,
Module module,
java.util.Collection configurationStores,
ConfigurationStore targetConfigurationStore,
java.util.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,
java.util.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,
java.util.Collection repositories)
throws DeploymentException
- Throws:
DeploymentException
Copyright © 2003-2012 The Apache Geronimo development community. All Rights Reserved.