Class ParentAwareNamingStrategy
java.lang.Object
org.springframework.jmx.export.naming.MetadataNamingStrategy
org.springframework.boot.autoconfigure.jmx.ParentAwareNamingStrategy
- All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.jmx.export.naming.ObjectNamingStrategy
public class ParentAwareNamingStrategy
extends org.springframework.jmx.export.naming.MetadataNamingStrategy
implements org.springframework.context.ApplicationContextAware
Extension of
MetadataNamingStrategy that supports a parent
ApplicationContext.- Since:
- 1.1.1
-
Constructor Summary
ConstructorsConstructorDescriptionParentAwareNamingStrategy(org.springframework.jmx.export.metadata.JmxAttributeSource attributeSource) -
Method Summary
Modifier and TypeMethodDescriptiongetObjectName(Object managedBean, @Nullable String beanKey) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetEnsureUniqueRuntimeObjectNames(boolean ensureUniqueRuntimeObjectNames) Set if unique runtime object names should be ensured.Methods inherited from class org.springframework.jmx.export.naming.MetadataNamingStrategy
afterPropertiesSet, setAttributeSource, setDefaultDomain
-
Constructor Details
-
ParentAwareNamingStrategy
public ParentAwareNamingStrategy(org.springframework.jmx.export.metadata.JmxAttributeSource attributeSource)
-
-
Method Details
-
setEnsureUniqueRuntimeObjectNames
public void setEnsureUniqueRuntimeObjectNames(boolean ensureUniqueRuntimeObjectNames) Set if unique runtime object names should be ensured.- Parameters:
ensureUniqueRuntimeObjectNames-trueif unique names should be ensured.
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
getObjectName
public ObjectName getObjectName(Object managedBean, @Nullable String beanKey) throws MalformedObjectNameException - Specified by:
getObjectNamein interfaceorg.springframework.jmx.export.naming.ObjectNamingStrategy- Overrides:
getObjectNamein classorg.springframework.jmx.export.naming.MetadataNamingStrategy- Throws:
MalformedObjectNameException
-