Example usage for javax.management MBeanAttributeInfo getDescriptor

List of usage examples for javax.management MBeanAttributeInfo getDescriptor

Introduction

In this page you can find the example usage for javax.management MBeanAttributeInfo getDescriptor.

Prototype

public Descriptor getDescriptor() 

Source Link

Document

Returns the descriptor for the feature.

Usage

From source file:org.echocat.jemoni.carbon.jmx.Jmx2CarbonBridge.java

@Nullable
protected AttributeDefinition findDefinitionFor(@Nonnull ObjectName objectName,
        @Nonnull MBeanAttributeInfo info) {
    final Descriptor descriptor = info.getDescriptor();
    final OpenType<?> openType = (OpenType<?>) descriptor.getFieldValue("openType");
    return findDefinitionFor(objectName, info, info.getName(), openType);
}