public class ParentAwareNamingStrategy extends MetadataNamingStrategy implements ApplicationContextAware
ObjectNamingStrategy
that takes into consideration the 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) |
afterPropertiesSet, setAttributeSource, setDefaultDomain
public ParentAwareNamingStrategy(JmxAttributeSource attributeSource)
public void setEnsureUniqueRuntimeObjectNames(boolean ensureUniqueRuntimeObjectNames)
ensureUniqueRuntimeObjectNames
- the ensureUniqueRuntimeObjectNames to setpublic ObjectName getObjectName(Object managedBean, String beanKey) throws MalformedObjectNameException
getObjectName
in interface ObjectNamingStrategy
getObjectName
in class MetadataNamingStrategy
MalformedObjectNameException
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext
in interface ApplicationContextAware
BeansException
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.