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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetObjectName(Object managedBean, String beanKey) voidsetApplicationContext(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
-
-
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
- Specified by:
setApplicationContextin interfaceApplicationContextAware- Throws:
BeansException
-
getObjectName
public ObjectName getObjectName(Object managedBean, String beanKey) throws MalformedObjectNameException - Specified by:
getObjectNamein interfaceObjectNamingStrategy- Overrides:
getObjectNamein classMetadataNamingStrategy- Throws:
MalformedObjectNameException
-