public class ParentAwareNamingStrategy extends MetadataNamingStrategy implements ApplicationContextAware
MetadataNamingStrategy that supports a parent
ApplicationContext.| Constructor and Description |
|---|
ParentAwareNamingStrategy(JmxAttributeSource attributeSource) |
| Modifier and Type | Method and Description |
|---|---|
ObjectName |
getObjectName(Object managedBean,
String beanKey) |
void |
setApplicationContext(ApplicationContext applicationContext) |
void |
setEnsureUniqueRuntimeObjectNames(boolean ensureUniqueRuntimeObjectNames)
Set if unique runtime object names should be ensured.
|
afterPropertiesSet, setAttributeSource, setDefaultDomainpublic ParentAwareNamingStrategy(JmxAttributeSource attributeSource)
public void setEnsureUniqueRuntimeObjectNames(boolean ensureUniqueRuntimeObjectNames)
ensureUniqueRuntimeObjectNames - true if unique names should ensured.public ObjectName getObjectName(Object managedBean, String beanKey) throws MalformedObjectNameException
getObjectName in interface ObjectNamingStrategygetObjectName in class MetadataNamingStrategyMalformedObjectNameExceptionpublic void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext in interface ApplicationContextAwareBeansExceptionCopyright © 2017 Pivotal Software, Inc.. All rights reserved.