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 ofMetadataNamingStrategy
that supports a parentApplicationContext
.- Since:
- 1.1.1
Constructor Summary
Constructors Constructor Description ParentAwareNamingStrategy(org.springframework.jmx.export.metadata.JmxAttributeSource attributeSource)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectName
getObjectName(Object managedBean, String beanKey)
void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
void
setEnsureUniqueRuntimeObjectNames(boolean ensureUniqueRuntimeObjectNames)
Set if unique runtime object names should be ensured.
Constructor Detail
ParentAwareNamingStrategy
public ParentAwareNamingStrategy(org.springframework.jmx.export.metadata.JmxAttributeSource attributeSource)
Method Detail
setEnsureUniqueRuntimeObjectNames
public void setEnsureUniqueRuntimeObjectNames(boolean ensureUniqueRuntimeObjectNames)
Set if unique runtime object names should be ensured.- Parameters:
ensureUniqueRuntimeObjectNames
-true
if unique names should ensured.
getObjectName
public ObjectName getObjectName(Object managedBean, String beanKey) throws MalformedObjectNameException
- Specified by:
getObjectName
in interfaceorg.springframework.jmx.export.naming.ObjectNamingStrategy
- Overrides:
getObjectName
in classorg.springframework.jmx.export.naming.MetadataNamingStrategy
- Throws:
MalformedObjectNameException
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException