Annotation Interface 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 the ManagedResource 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.

从以下版本开始:
4.0
作者:
Rob Harrop, Juergen Hoeller, Sam Brannen
另请参阅:
  • 元素详细资料

    • value

      @AliasFor("objectName") String value
      Alias for the objectName() attribute, for simple default usage.
      默认值:
      ""
    • objectName

      @AliasFor("value") String objectName
      默认值:
      ""
    • description

      String description
      默认值:
      ""
    • currencyTimeLimit

      int currencyTimeLimit
      默认值:
      -1
    • log

      boolean log
      默认值:
      false
    • logFile

      String logFile
      默认值:
      ""
    • persistPolicy

      String persistPolicy
      默认值:
      ""
    • persistPeriod

      int persistPeriod
      默认值:
      -1
    • persistName

      String persistName
      默认值:
      ""
    • persistLocation

      String persistLocation
      默认值:
      ""