org.apache.geronimo.openejb
Class EjbModuleImpl

java.lang.Object
  extended by org.apache.geronimo.openejb.EjbModuleImpl
All Implemented Interfaces:
EJBModule, J2EEDeployedObject, J2EEManagedObject, J2EEModule
Direct Known Subclasses:
EjbModuleImplGBean

public class EjbModuleImpl
extends Object
implements EJBModule


Constructor Summary
EjbModuleImpl(String objectName, J2EEServer server, J2EEApplication application, String deploymentDescriptor, Collection<? extends EJB> ejbs, ClassLoader classLoader, OpenEjbSystem openEjbSystem, org.apache.openejb.assembler.classic.EjbJarInfo ejbJarInfo)
           
 
Method Summary
 String getApplication()
           
 String getDeploymentDescriptor()
          The deploymentDescriptor string must contain the original XML deployment descriptor that was created for this module during the deployment process.
 String[] getEjbs()
          A list of EJBs included in this EJB JAR
 String[] getJavaVMs()
          A list of JVMs this module is running on.
 String getObjectName()
          Gets the unique name of this object.
 String getServer()
          The J2EE server the application or module is deployed on.
 boolean isEventProvider()
          Determines if this object implemnts the event provider type defined in the J2EE Management specification.
 boolean isStateManageable()
          Determines if this object implements the state manageable type defined in the J2EE Management specification.
 boolean isStatisticsProvider()
          Determines if this object implemnts the statistics provider type defined in the J2EE Management specification.
protected  void start()
           
protected  void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EjbModuleImpl

public EjbModuleImpl(String objectName,
                     J2EEServer server,
                     J2EEApplication application,
                     String deploymentDescriptor,
                     Collection<? extends EJB> ejbs,
                     ClassLoader classLoader,
                     OpenEjbSystem openEjbSystem,
                     org.apache.openejb.assembler.classic.EjbJarInfo ejbJarInfo)
Method Detail

getObjectName

public String getObjectName()
Description copied from interface: J2EEManagedObject
Gets the unique name of this object. The object name must comply with the ObjectName specification in the JMX specification and the restrictions in the J2EEManagementInterface.

Specified by:
getObjectName in interface J2EEManagedObject
Returns:
the unique name of this object within the server

isStateManageable

public boolean isStateManageable()
Description copied from interface: J2EEManagedObject
Determines if this object implements the state manageable type defined in the J2EE Management specification.

Specified by:
isStateManageable in interface J2EEManagedObject
Returns:
true if this class also implements the state manageable type; false otherwise

isStatisticsProvider

public boolean isStatisticsProvider()
Description copied from interface: J2EEManagedObject
Determines if this object implemnts the statistics provider type defined in the J2EE Management specification.

Specified by:
isStatisticsProvider in interface J2EEManagedObject
Returns:
true if this class also implements the statistics provider type; false otherwise

isEventProvider

public boolean isEventProvider()
Description copied from interface: J2EEManagedObject
Determines if this object implemnts the event provider type defined in the J2EE Management specification.

Specified by:
isEventProvider in interface J2EEManagedObject
Returns:
true if this class also implements the event manageable type; false otherwise

getDeploymentDescriptor

public String getDeploymentDescriptor()
Description copied from interface: J2EEDeployedObject
The deploymentDescriptor string must contain the original XML deployment descriptor that was created for this module during the deployment process.

Specified by:
getDeploymentDescriptor in interface J2EEDeployedObject
Returns:
this module's deployment descriptor
See Also:
"JSR77.3.5.0.1"

getServer

public String getServer()
Description copied from interface: J2EEDeployedObject
The J2EE server the application or module is deployed on.

Specified by:
getServer in interface J2EEDeployedObject
Returns:
the server this module is deployed on
See Also:
"JSR77.3.5.0.2"

getApplication

public String getApplication()

getJavaVMs

public String[] getJavaVMs()
Description copied from interface: J2EEModule
A list of JVMs this module is running on. Each JVM listed here must be present in the owning J2EEServer's list of JVMs.

Specified by:
getJavaVMs in interface J2EEModule
Returns:
the ObjectNames of the JVMs the module is running on
See Also:
"JSR77.3.7.1.1"

getEjbs

public String[] getEjbs()
Description copied from interface: EJBModule
A list of EJBs included in this EJB JAR

Specified by:
getEjbs in interface EJBModule
Returns:
the ObjectNames of the EJBs in this EJB JAR
See Also:
"JSR77.3.9.1.1"

start

protected void start()
              throws Exception
Throws:
Exception

stop

protected void stop()


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.