org.jboss.management.j2ee
Class J2EEApplication

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src) 
      extended byorg.jboss.system.ServiceMBeanSupport (src) 
          extended byorg.jboss.management.j2ee.J2EEManagedObject (src) 
              extended byorg.jboss.management.j2ee.J2EEDeployedObject (src) 
                  extended byorg.jboss.management.j2ee.J2EEApplication
All Implemented Interfaces:
MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , Service (src) , ServiceMBean (src)

public class J2EEApplication
extends J2EEDeployedObject (src)

Root class of the JBoss JSR-77 implementation of J2EEApplication.


Field Summary
 
Fields inherited from class org.jboss.management.j2ee.J2EEDeployedObject (src)
APPLICATION, CMP, EJB, JAWS, JBOSS, JBOSS_WEB, RAR, SAR, WEB
 
Fields inherited from class org.jboss.management.j2ee.J2EEManagedObject (src)
NAME, TYPE
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src)
server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean (src)
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
J2EEApplication(java.lang.String name, ObjectName (src)  mbeanServer, java.lang.String pDeploymentDescriptor)
          Constructor taking the Name of this Object
 
Method Summary
 void addChild(ObjectName (src)  pChild)
           
static ObjectName (src) create(MBeanServer (src)  mbeanServer, java.lang.String earName, java.net.URL url)
          Create a JSR77 ear model instnace
static void destroy(MBeanServer (src)  mbeanServer, ObjectName (src)  jsr77Name)
          Destroy the J2EEApplication component
 java.lang.String getmodule(int pIndex)
           
 java.lang.String[] getmodules()
           
protected  java.util.Hashtable getParentKeys(ObjectName (src)  pParent)
          This method can be overwritten by any subclass which must return <parent-j2eeType> indicating its parents.
 void removeChild(ObjectName (src)  pChild)
           
 java.lang.String toString()
           
 
Methods inherited from class org.jboss.management.j2ee.J2EEDeployedObject (src)
getdeploymentDescriptor, getDeploymentDescriptor, getserver
 
Methods inherited from class org.jboss.management.j2ee.J2EEManagedObject (src)
getobjectName, getObjectName, getObjectName, getparent, getType, getType, iseventProvider, isstateManageable, isstatisticsProvider, newObjectName, postCreation, postRegister, preDeregister, preDestruction, removeObject, removeObject, sendNotification, setparent
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src)
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, preRegister, start, startService, stop, stopService
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

J2EEApplication

public J2EEApplication(java.lang.String name,
                       ObjectName (src)  mbeanServer,
                       java.lang.String pDeploymentDescriptor)
                throws MalformedObjectNameException (src) ,
                       InvalidParentException (src) 
Constructor taking the Name of this Object

Parameters:
name - Name to be set which must not be null
pDeploymentDescriptor -
Throws:
java.security.InvalidParameterException - If the given Name is null
MalformedObjectNameException (src)
InvalidParentException (src)
Method Detail

create

public static ObjectName (src)  create(MBeanServer (src)  mbeanServer,
                                java.lang.String earName,
                                java.net.URL url)
Create a JSR77 ear model instnace

Parameters:
mbeanServer - the MBeanServer to register with
earName - the name of the j2ee ear deployment
url - the ear URL, which may be null to represent a standalone jar/war/war without an ear
Returns:
the JSR77 ObjectName for the J2EEApplication

destroy

public static void destroy(MBeanServer (src)  mbeanServer,
                           ObjectName (src)  jsr77Name)
Destroy the J2EEApplication component

Parameters:
mbeanServer - the MBeanServer used during create
jsr77Name - the JSR77 J2EEApplication component name

getmodules

public java.lang.String[] getmodules()

getmodule

public java.lang.String getmodule(int pIndex)

addChild

public void addChild(ObjectName (src)  pChild)
Overrides:
addChild in class J2EEManagedObject (src)

removeChild

public void removeChild(ObjectName (src)  pChild)
Overrides:
removeChild in class J2EEManagedObject (src)

toString

public java.lang.String toString()
Overrides:
toString in class J2EEDeployedObject (src)

getParentKeys

protected java.util.Hashtable getParentKeys(ObjectName (src)  pParent)
Description copied from class: J2EEManagedObject (src)
This method can be overwritten by any subclass which must return <parent-j2eeType> indicating its parents. By default it returns an empty hashtable instance.

Overrides:
getParentKeys in class J2EEManagedObject (src)
Parameters:
pParent - The direct parent of this class
Returns:
A hashtable with the J2EE Server as parent