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 Details

    • MBeanData

      public MBeanData()
      Constructor
    • MBeanData

      public MBeanData(ObjectName objectName, MBeanInfo metaData)
      Constructor
      Parameters:
      objectName - The object name
      metaData - The metadata about the bean
  • Method Details

    • 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:
      compareTo in interface Comparable
      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.
    • hashCode

      public int hashCode()
      Hash code
      Overrides:
      hashCode in class Object
      Returns:
      The hash
    • equals

      public boolean equals(Object o)
      Equals
      Overrides:
      equals in class Object
      Parameters:
      o - The other object
      Returns:
      True if the two object are equal; otherwise false