org.ow2.jonas.ear.internal.mbean
Class EARModuleMBean

java.lang.Object
  extended by org.apache.commons.modeler.BaseModelMBean
      extended by org.ow2.jonas.lib.management.javaee.J2EEManagedObjectMBean<T>
          extended by org.ow2.jonas.lib.management.javaee.J2EEDeployedObjectMBean<EARModule>
              extended by org.ow2.jonas.ear.internal.mbean.EARModuleMBean
All Implemented Interfaces:
DynamicMBean, MBeanRegistration, ModelMBean, ModelMBeanNotificationBroadcaster, NotificationBroadcaster, PersistentMBean

public class EARModuleMBean
extends org.ow2.jonas.lib.management.javaee.J2EEDeployedObjectMBean<EARModule>

This class is managing the object for JSR77 J2EEApplication.

Author:
Florent BENOIT

Field Summary
 
Fields inherited from class org.ow2.jonas.lib.management.javaee.J2EEManagedObjectMBean
J2EESERVER_KEY
 
Fields inherited from class org.apache.commons.modeler.BaseModelMBean
attributeBroadcaster, attributes, generalBroadcaster, info, oname, registry, resource, resourceType, source
 
Constructor Summary
EARModuleMBean()
          Public default constructor.
 
Method Summary
 String[] getClassLoaderFilters()
          Gets the filters of classloader.
 String getDeploymentDescriptor()
           
 URL getEarUrl()
           
 String[] getModules()
          Return the J2EEModules used by this J2EEApplication (jar, war, rar).
 String getName()
           
 URL[] getResources(String resourceName)
          Gets all the URL to the given resource.
 String loadClass(String className)
          Gets data about loading a given class.
 
Methods inherited from class org.ow2.jonas.lib.management.javaee.J2EEDeployedObjectMBean
getServer
 
Methods inherited from class org.ow2.jonas.lib.management.javaee.J2EEManagedObjectMBean
getLogger, getManagedComponent, isEventProvider, isStateManageable, isStatisticsProvider
 
Methods inherited from class org.apache.commons.modeler.BaseModelMBean
addAttributeChangeNotificationListener, addNotificationListener, createDefaultModelMBeanInfo, createResource, getAttribute, getAttributes, getClassName, getJmxName, getManagedResource, getMBeanInfo, getModelerType, getNotificationInfo, getObjectName, getRegistry, initModelInfo, invoke, isModelMBeanInfoValid, load, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeAttributeChangeNotificationListener, removeNotificationListener, removeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setManagedResource, setModeledType, setModelMBeanInfo, setRegistry, store, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EARModuleMBean

public EARModuleMBean()
               throws MBeanException
Public default constructor.

Throws:
MBeanException - if this Object can't be created
Method Detail

getDeploymentDescriptor

public String getDeploymentDescriptor()
Overrides:
getDeploymentDescriptor in class org.ow2.jonas.lib.management.javaee.J2EEDeployedObjectMBean<EARModule>
Returns:
Returns the XML Deployment Descriptors of the J2EEApplication Module.

getName

public String getName()
Returns:
the Application Name.

getEarUrl

public URL getEarUrl()
Returns:
the URL of this Application

getModules

public String[] getModules()
Return the J2EEModules used by this J2EEApplication (jar, war, rar).

Returns:
A array of OBJECT_NAMEs corresponding to these modules.

loadClass

public String loadClass(String className)
                 throws InvalidTargetObjectTypeException,
                        InstanceNotFoundException,
                        MBeanException
Gets data about loading a given class.

Parameters:
className - the class name
Returns:
a string description for the given class that needs to be loaded
Throws:
InvalidTargetObjectTypeException
InstanceNotFoundException
MBeanException

getClassLoaderFilters

public String[] getClassLoaderFilters()
                               throws InvalidTargetObjectTypeException,
                                      InstanceNotFoundException,
                                      MBeanException
Gets the filters of classloader.

Returns:
the filters for the war classloader
Throws:
InvalidTargetObjectTypeException
InstanceNotFoundException
MBeanException

getResources

public URL[] getResources(String resourceName)
                   throws InvalidTargetObjectTypeException,
                          InstanceNotFoundException,
                          MBeanException
Gets all the URL to the given resource.

Parameters:
resourceName - the name of the resource
Returns:
the list of url, if any
Throws:
InvalidTargetObjectTypeException
InstanceNotFoundException
MBeanException


Copyright © 2011 OW2 Consortium. All Rights Reserved.