Class ParentAwareNamingStrategy
java.lang.Object
org.springframework.jmx.export.naming.MetadataNamingStrategy
org.springframework.boot.autoconfigure.jmx.ParentAwareNamingStrategy
- All Implemented Interfaces:
Aware
,InitializingBean
,ApplicationContextAware
,ObjectNamingStrategy
public class ParentAwareNamingStrategy
extends MetadataNamingStrategy
implements ApplicationContextAware
Extension of
MetadataNamingStrategy
that supports a parent
ApplicationContext
.- Since:
- 1.1.1
- Author:
- Dave Syer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetObjectName
(Object managedBean, String beanKey) void
setApplicationContext
(ApplicationContext applicationContext) void
setEnsureUniqueRuntimeObjectNames
(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
-
-
Method Details
-
setEnsureUniqueRuntimeObjectNames
public void setEnsureUniqueRuntimeObjectNames(boolean ensureUniqueRuntimeObjectNames) Set if unique runtime object names should be ensured.- Parameters:
ensureUniqueRuntimeObjectNames
-true
if unique names should be ensured.
-
setApplicationContext
- Specified by:
setApplicationContext
in interfaceApplicationContextAware
- Throws:
BeansException
-
getObjectName
public ObjectName getObjectName(Object managedBean, String beanKey) throws MalformedObjectNameException - Specified by:
getObjectName
in interfaceObjectNamingStrategy
- Overrides:
getObjectName
in classMetadataNamingStrategy
- Throws:
MalformedObjectNameException
-