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, setDefaultDomain
public ParentAwareNamingStrategy(JmxAttributeSource attributeSource)
public void setEnsureUniqueRuntimeObjectNames(boolean ensureUniqueRuntimeObjectNames)
ensureUniqueRuntimeObjectNames
- true
if unique names should be
ensured.public 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