org.ow2.jonas.ear.internal.mbean
Class EARModuleMBean
java.lang.Object
org.apache.commons.modeler.BaseModelMBean
org.ow2.jonas.lib.management.javaee.J2EEManagedObjectMBean<T>
org.ow2.jonas.lib.management.javaee.J2EEDeployedObjectMBean<EARModule>
org.ow2.jonas.ear.internal.mbean.EARModuleMBean
- All Implemented Interfaces:
- DynamicMBean, MBeanRegistration, ModelMBean, ModelMBeanNotificationBroadcaster, NotificationBroadcaster, PersistentMBean
public class EARModuleMBean
- extends J2EEDeployedObjectMBean<EARModule>
This class is managing the object for JSR77 J2EEApplication.
- Author:
- Florent BENOIT
| 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 |
EARModuleMBean
public EARModuleMBean()
throws MBeanException
- Public default constructor.
- Throws:
MBeanException - if this Object can't be created
getDeploymentDescriptor
public String getDeploymentDescriptor()
- Overrides:
getDeploymentDescriptor in class 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 © 2012 OW2 Consortium. All Rights Reserved.