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) |
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 © 2015 Pivotal Software, Inc.. All rights reserved.