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. This is designed to allow a subclass to extend it and only override the methods to affect the object-name that they want.

Author:
graywatson

Constructor Summary
BaseJmxSelfNaming()
           
 
Method Summary
 String getJmxBeanName()
          Return the name of the object that will be the "name=..." part of the associated ObjectName.
 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.
 
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

getJmxBeanName

public String getJmxBeanName()
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:
getJmxBeanName 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 to use the folder names specified in the JmxResource.folderNames() annotation instead.

Specified by:
getJmxFolderNames in interface JmxSelfNaming


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