注释类型 ManagedResource
@Target(TYPE) @Retention(RUNTIME) @Inherited @Documented public @interface ManagedResource
Class-level annotation that indicates to register instances of a class with a JMX server, corresponding to theManagedResource
attribute.Note: This annotation is marked as inherited, allowing for generic management-aware base classes. In such a scenario, it is recommended to not specify an object name value since this would lead to naming collisions in case of multiple subclasses getting registered.
- 从以下版本开始:
- 1.2
- 作者:
- Rob Harrop, Juergen Hoeller, Sam Brannen
- 另请参阅:
ManagedResource
可选元素概要
可选元素 修饰符和类型 可选元素 说明 int
currencyTimeLimit
String
description
boolean
log
String
logFile
String
objectName
String
persistLocation
String
persistName
int
persistPeriod
String
persistPolicy
String
value
Alias for theobjectName()
attribute, for simple default usage.
元素详细资料
value
@AliasFor("objectName") String value
Alias for theobjectName()
attribute, for simple default usage.- 默认值:
- ""
objectName
@AliasFor("value") String objectName
- 默认值:
- ""
description
String description
- 默认值:
- ""
currencyTimeLimit
int currencyTimeLimit
- 默认值:
- -1
log
boolean log
- 默认值:
- false
persistPolicy
String persistPolicy
- 默认值:
- ""
persistPeriod
int persistPeriod
- 默认值:
- -1
persistName
String persistName
- 默认值:
- ""
persistLocation
String persistLocation
- 默认值:
- ""