com.j256.simplejmx.common
Class BaseJmxSelfNaming

java.lang.Object
  extended by com.j256.simplejmx.common.BaseJmxSelfNaming
All Implemented Interfaces:
JmxSelfNaming

public class BaseJmxSelfNaming
extends Object
implements JmxSelfNaming

Base class which has default implementations of all of the JmxSelfNaming methods.

Author:
graywatson

Constructor Summary
BaseJmxSelfNaming()
           
 
Method Summary
 String getJmxDomainName()
          Return the domain name of the object that is used to built the associated ObjectName.
 JmxFolderName[] getJmxFolderNames()
          Return the appropriate array of folder names used to built the associated ObjectName.
 String getJmxNameOfObject()
          Return the name of the object that will be the "name=..." part of the associated ObjectName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseJmxSelfNaming

public BaseJmxSelfNaming()
Method Detail

getJmxDomainName

public String getJmxDomainName()
Description copied from interface: JmxSelfNaming
Return the domain name of the object that is used to built the associated ObjectName. Return null to use the one from the JmxResource.domainName() annotation instead.

Specified by:
getJmxDomainName in interface JmxSelfNaming

getJmxNameOfObject

public String getJmxNameOfObject()
Description copied from interface: JmxSelfNaming
Return the name of the object that will be the "name=..." part of the associated ObjectName. Return null to use the one from the JmxResource.beanName() annotation instead.

Specified by:
getJmxNameOfObject in interface JmxSelfNaming

getJmxFolderNames

public JmxFolderName[] getJmxFolderNames()
Description copied from interface: JmxSelfNaming
Return the appropriate array of folder names used to built the associated ObjectName. Return null for no folders in which case the bean will be at the top of the hierarchy in jconsole without any sub-folders.

Specified by:
getJmxFolderNames in interface JmxSelfNaming


This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.