The JmxMetaMapBuilder class is used to collect meta data passed in JmxBuilder nodes. Once collected, the data is then normalized to be represented uniformly regardless of the resource where it was obtained.
Type Params | Return Type | Name and description |
---|---|---|
|
static Map |
buildAttributeMapFrom(def object) Builds attribute meta map with default information from an instance of an object. |
|
static Map |
buildAttributeMapFrom(def object, def descCollection) Sanitizes and builds an attribute meta map from a descriptor collection. |
|
static Map |
buildConstructorMapFrom(def object) Returns a meta map of constructors from given object. |
|
static Map |
buildConstructorMapFrom(def object, def descCollection) Builds a fully normalized constructor meta map. |
|
static def |
buildListenerMapFrom(def descCollection) Creates a fully-normalized meta map for a given collection of listeners. |
|
static Map |
buildObjectMapFrom(def object) Builds a complete meta map graph for the specified object using default values. |
|
static Map |
buildObjectMapFrom(def object, def descriptor) Builds a complete meta map graph for a given target and descriptor. |
|
static Map |
buildOperationMapFrom(def object) Returns a meta map of operations from given object. |
|
static Map |
buildOperationMapFrom(def object, def descCollection) |
|
static Map |
buildParameterMapFrom(def method) Builds a normalized parameter meta map for all params on provided method. |
|
static Map |
buildParameterMapFrom(def method, def descCollection) Builds a fully normalized parameter meta map for the method and the given meta map. |
|
static Map |
createListenerMap(def descriptor) Builds normalized meta map of the provided listener descriptor. |
Builds attribute meta map with default information from an instance of an object.
the
- object from which attribute info will be retrievedSanitizes and builds an attribute meta map from a descriptor collection. The collection can either be a map of the form [attribName:[descriptor...],...] or [attribName1,...attribNameN]. The code guests sensible defaults when values are not provided
the
- object about which meta data is collecteddescriptor
- collection: either a map or a listReturns a meta map of constructors from given object.
object
- to profileBuilds a fully normalized constructor meta map.
the
- object where constructor is defined.the
- meta map that will be normalizedCreates a fully-normalized meta map for a given collection of listeners.
-
- collection of descriptors to normalizeBuilds a complete meta map graph for the specified object using default values. All generated attributes are set to read-only.
object
- used to build meta data graphBuilds a complete meta map graph for a given target and descriptor.
object
- used to build meta data graphdescriptor
- a full descriptor map describing object attributes and ops.Returns a meta map of operations from given object.
object
- to profileBuilds a normalized parameter meta map for all params on provided method.
the
- method with parameters to normalizedBuilds a fully normalized parameter meta map for the method and the given meta map.
the
- method from which to extract normalized info.a
- given meta map which will be normalized