Package org.jvnet.hk2.jmx.api
Interface HK2JmxSpecifier
This service must be implemented in order to specify those
descriptors that might be reflected into JMX
-
Method Summary
Modifier and TypeMethodDescriptionReturns the policy to use for adding the next JmxObjectReturns true for descriptors that should possibly have instances put into JMX.getJmxObject
(ActiveDescriptor<?> descriptor, Object instance) Gets the Object that should be used either directly or to be modelled.Gets the string for connecting to the JmxServergetObjectName
(Object instance)
-
Method Details
-
getJmxServerName
String getJmxServerName()Gets the string for connecting to the JmxServer- Returns:
- The name of the JmxServer to connect to, or null for the platform server
-
getJmxDescriptorFilter
Filter getJmxDescriptorFilter()Returns true for descriptors that should possibly have instances put into JMX. May be an implementation of IndexedFilter- Returns:
- The non-null filter to determine what descriptors should be considered for adding to Jmx
-
getJmxObject
Gets the Object that should be used either directly or to be modelled.- Parameters:
descriptor
- The descriptor from which this instance was createdinstance
- The instance created- Returns:
- The object to either be placed directly into JMX or to be modelled. If this returns null then this instance will not be put into Jmx
-
getAnalysisPolicy
String getAnalysisPolicy()Returns the policy to use for adding the next JmxObject- Returns:
-
getObjectName
-
getObjectNamePolicy
String getObjectNamePolicy() -
getDomainName
String getDomainName()
-