org.jboss.management.j2ee
Class J2EEDeployedObject

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.management.j2ee.J2EEManagedObject
          extended by org.jboss.management.j2ee.J2EEDeployedObject
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, J2EEDeployedObjectMBean, J2EEManagedObjectMBean
Direct Known Subclasses:
J2EEApplication, J2EEModule

public abstract class J2EEDeployedObject
extends J2EEManagedObject
implements J2EEDeployedObjectMBean

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

Version:
$Revision: 1.13.6.4 $
Author:
Andreas Schaefer, Thomas Diesler, Dimitris Andreadis

Field Summary
static int APPLICATION
           
static int CMP
           
static int EJB
           
static int JAWS
           
static int JBOSS
           
static int JBOSS_WEB
           
static int RAR
           
static int SAR
           
static int WEB
           
 
Fields inherited from class org.jboss.management.j2ee.J2EEManagedObject
NAME, server, TYPE
 
Constructor Summary
J2EEDeployedObject(String pType, String pName, javax.management.ObjectName pParent, String pDeploymentDescriptor)
          Constructor taking the Name of this Object
 
Method Summary
 String getdeploymentDescriptor()
          The deployment descriptor of the deployment
static String getDeploymentDescriptor(URL pJarUrl, int pType)
           
static String getDeploymentDescriptor(URL baseJarUrl, String descriptor)
          Loads and returns in a string form the deployment descriptor for a module.
 String getserver()
          The name of the server
 String toString()
           
 
Methods inherited from class org.jboss.management.j2ee.J2EEManagedObject
addChild, getLog, getNextNotificationSequenceNumber, getobjectName, getObjectName, getparent, getParentKeys, getServer, getType, getType, iseventProvider, isstateManageable, isstatisticsProvider, newObjectName, postCreation, postDeregister, postRegister, preDeregister, preDestruction, preRegister, removeChild, removeObject, removeObject, sendNotification, setparent
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.management.j2ee.J2EEManagedObjectMBean
addChild, getobjectName, getparent, iseventProvider, isstateManageable, isstatisticsProvider, removeChild, setparent
 

Field Detail

APPLICATION

public static final int APPLICATION
See Also:
Constant Field Values

WEB

public static final int WEB
See Also:
Constant Field Values

EJB

public static final int EJB
See Also:
Constant Field Values

RAR

public static final int RAR
See Also:
Constant Field Values

SAR

public static final int SAR
See Also:
Constant Field Values

JBOSS

public static final int JBOSS
See Also:
Constant Field Values

JAWS

public static final int JAWS
See Also:
Constant Field Values

CMP

public static final int CMP
See Also:
Constant Field Values

JBOSS_WEB

public static final int JBOSS_WEB
See Also:
Constant Field Values
Constructor Detail

J2EEDeployedObject

public J2EEDeployedObject(String pType,
                          String pName,
                          javax.management.ObjectName pParent,
                          String pDeploymentDescriptor)
                   throws javax.management.MalformedObjectNameException,
                          InvalidParentException
Constructor taking the Name of this Object

Parameters:
pName - Name to be set which must not be null
pDeploymentDescriptor -
Throws:
InvalidParameterException - If the given Name is null
javax.management.MalformedObjectNameException
InvalidParentException
Method Detail

getDeploymentDescriptor

public static String getDeploymentDescriptor(URL pJarUrl,
                                             int pType)

getDeploymentDescriptor

public static String getDeploymentDescriptor(URL baseJarUrl,
                                             String descriptor)
Loads and returns in a string form the deployment descriptor for a module. If the descriptor relative path is null the baseJarUrl is used as the descriptor itself. Otherwise baseJarUrl and descriptor are combined to form the final descriptor.


getdeploymentDescriptor

public String getdeploymentDescriptor()
Description copied from interface: J2EEDeployedObjectMBean
The deployment descriptor of the deployment

Specified by:
getdeploymentDescriptor in interface J2EEDeployedObjectMBean

getserver

public String getserver()
Description copied from interface: J2EEDeployedObjectMBean
The name of the server

Specified by:
getserver in interface J2EEDeployedObjectMBean

toString

public String toString()
Overrides:
toString in class J2EEManagedObject


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.