Annotation Interface JsonMBean


@Retention(RUNTIME) @Target(TYPE) public @interface JsonMBean
Annotation for marking an MBean as a "JsonMBean", which instead of exporting complex data structure JSON strings. So any non-trivial argument and return value gets parsed from/translated into a JSON string.
Since:
13.01.13
Author:
roland
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Error handling during extraction of values
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    How to deal with exceptions occuring during deserialization.
    int
    Maximum size of collections returned during serialization.
    int
    How deep to serialize the return value when exposing at the MBeanServer.
    int
    Maximum number of objects returned by serialization.
  • Element Details

    • maxDepth

      int maxDepth
      How deep to serialize the return value when exposing at the MBeanServer. By default, no restriction applies
      Returns:
      maximum depth used for downstram serialization
      Default:
      0
    • maxCollectionSize

      int maxCollectionSize
      Maximum size of collections returned during serialization. If larger, the collection is truncated. By default, no truncation applies
      Returns:
      maximum size for collections
      Default:
      0
    • maxObjects

      int maxObjects
      Maximum number of objects returned by serialization. By default, no truncation applies.
      Returns:
      maximum number of objects to return
      Default:
      0
    • faultHandling

      JsonMBean.FaultHandler faultHandling
      How to deal with exceptions occuring during deserialization. By default, exceptions are thrown through (and encapsulated in a IllegalArgumentException).
      Returns:
      fault handler
      Default:
      THROW_EXCEPTIONS