类 ParentAwareNamingStrategy
java.lang.Object
org.springframework.jmx.export.naming.MetadataNamingStrategy
org.springframework.boot.autoconfigure.jmx.ParentAwareNamingStrategy
- 所有已实现的接口:
Aware
,InitializingBean
,ApplicationContextAware
,ObjectNamingStrategy
public class ParentAwareNamingStrategy
extends MetadataNamingStrategy
implements ApplicationContextAware
Extension of
MetadataNamingStrategy
that supports a parent
ApplicationContext
.- 从以下版本开始:
- 1.1.1
- 作者:
- Dave Syer
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明getObjectName
(Object managedBean, String beanKey) void
setApplicationContext
(ApplicationContext applicationContext) void
setEnsureUniqueRuntimeObjectNames
(boolean ensureUniqueRuntimeObjectNames) Set if unique runtime object names should be ensured.从类继承的方法 org.springframework.jmx.export.naming.MetadataNamingStrategy
afterPropertiesSet, setAttributeSource, setDefaultDomain
-
构造器详细资料
-
ParentAwareNamingStrategy
-
-
方法详细资料
-
setEnsureUniqueRuntimeObjectNames
public void setEnsureUniqueRuntimeObjectNames(boolean ensureUniqueRuntimeObjectNames) Set if unique runtime object names should be ensured.- 参数:
ensureUniqueRuntimeObjectNames
-true
if unique names should be ensured.
-
setApplicationContext
- 指定者:
setApplicationContext
在接口中ApplicationContextAware
- 抛出:
BeansException
-
getObjectName
public ObjectName getObjectName(Object managedBean, String beanKey) throws MalformedObjectNameException - 指定者:
getObjectName
在接口中ObjectNamingStrategy
- 覆盖:
getObjectName
在类中MetadataNamingStrategy
- 抛出:
MalformedObjectNameException
-