Package org.jolokia.support.jmx
Annotation 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 ClassesModifier and TypeClassDescriptionstatic enumError handling during extraction of values -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionHow to deal with exceptions occuring during deserialization.intMaximum size of collections returned during serialization.intHow deep to serialize the return value when exposing at the MBeanServer.intMaximum number of objects returned by serialization.
-
Element Details
-
maxDepth
int maxDepthHow 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 maxCollectionSizeMaximum 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 maxObjectsMaximum number of objects returned by serialization. By default, no truncation applies.- Returns:
- maximum number of objects to return
- Default:
- 0
-
faultHandling
JsonMBean.FaultHandler faultHandlingHow to deal with exceptions occuring during deserialization. By default, exceptions are thrown through (and encapsulated in a IllegalArgumentException).- Returns:
- fault handler
- Default:
- THROW_EXCEPTIONS
-