Package org.jboss.jca.web.console
Class MBeanData
- java.lang.Object
-
- org.jboss.jca.web.console.MBeanData
-
- All Implemented Interfaces:
Comparable
public class MBeanData extends Object implements Comparable
A MBean ObjectName and MBeanInfo pair that is orderable by ObjectName.- Author:
- Scott Stark, Jesper Pedersen
-
-
Constructor Summary
Constructors Constructor Description MBeanData()ConstructorMBeanData(ObjectName objectName, MBeanInfo metaData)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Object o)Compares MBeanData based on the ObjectName domain name and canonical key propertiesbooleanequals(Object o)EqualsStringgetClassName()Get the class nameMBeanInfogetMetaData()Get the metadataStringgetName()Get the string repsentation of the object nameStringgetNameProperties()Get the key propertues listingObjectNamegetObjectName()Get the object nameinthashCode()Hash codevoidsetMetaData(MBeanInfo metaData)Set the metadatavoidsetObjectName(ObjectName objectName)Set the object name
-
-
-
Constructor Detail
-
MBeanData
public MBeanData()
Constructor
-
MBeanData
public MBeanData(ObjectName objectName, MBeanInfo metaData)
Constructor- Parameters:
objectName- The object namemetaData- The metadata about the bean
-
-
Method Detail
-
getObjectName
public ObjectName getObjectName()
Get the object name- Returns:
- The name
-
setObjectName
public void setObjectName(ObjectName objectName)
Set the object name- Parameters:
objectName- The new value
-
getMetaData
public MBeanInfo getMetaData()
Get the metadata- Returns:
- The data
-
setMetaData
public void setMetaData(MBeanInfo metaData)
Set the metadata- Parameters:
metaData- The new value
-
getName
public String getName()
Get the string repsentation of the object name- Returns:
- The string
-
getNameProperties
public String getNameProperties()
Get the key propertues listing- Returns:
- The keys
-
getClassName
public String getClassName()
Get the class name- Returns:
- The class name
-
compareTo
public int compareTo(Object o)
Compares MBeanData based on the ObjectName domain name and canonical key properties- Specified by:
compareToin interfaceComparable- Parameters:
o- the MBeanData to compare against- Returns:
- < 0 if this is less than o, > 0 if this is greater than o, 0 if equal.
-
-