Top Description Inners Methods
org.glassfish.gmbal.impl

public Interface ManagedObjectManagerInternal

extends ManagedObjectManager
Known Direct Implementers
org.glassfish.gmbal.impl.ManagedObjectManagerImpl
Imports
org.glassfish.gmbal.typelib.EvaluatedClassAnalyzer, .EvaluatedClassDeclaration, .EvaluatedDeclaration, .EvaluatedType, org.glassfish.gmbal.ManagedObjectManager, .InheritedAttribute, .AMXMetadata, java.lang.annotation.Annotation, java.lang.reflect.AnnotatedElement, java.util.Collection, .List, .Map, javax.management.ObjectName, org.glassfish.pfl.basic.contain.Pair, org.glassfish.pfl.basic.facet.FacetAccessor, org.glassfish.pfl.basic.func.UnaryPredicate

The internal interface to the ManagedObjectManager that is used in the gmbal implementation. The methods defined here are not for use by gmbal clients.
Author
ken

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
ManagedObjectManagerInternal.AttributeDescriptorType

Used in getAttributes to indicate type of Attribute being considered.

Method Summary

Modifier and TypeMethod and Description
public MBeanImpl
constructMBean(MBeanImpl parentEntity, Object obj, String name)

public <T extends EvaluatedDeclaration> UnaryPredicate<T>
forAnnotation(Class<? extends Annotation> annotation, Class<T> elemType)
References Deprecated UnaryPredicate is deprecated or references (maybe indirectly) at least one deprecated element.

public <T extends Annotation> T
public Collection<Annotation>
public Pair<Map<String, AttributeDescriptor>, Map<String, AttributeDescriptor>>
public Pair<EvaluatedClassDeclaration, EvaluatedClassAnalyzer>

Returns:

A Pair of the parent class of cls, and the EvaluatedClassAnalyzer.
getClassAnalyzer
(EvaluatedClassDeclaration
The class for which we need a EvaluatedClassAnalyzer.
cls
,
Class<? extends Annotation>
The annotation that must be present on cls or a superclass or superinterface.
annotationClass
)

Find the superclass or superinterface of cls (which may be cls itself) that has the given annotationClass as an annotation.

public AMXMetadata
public String
public FacetAccessor
public <T extends Annotation> T
public List<InheritedAttribute>

Returns:

The inherited attributes.
getInheritedAttributes
(EvaluatedClassAnalyzer
The ClassAnalyzer to check for InheritedAttribute(s).
ca
)

Get the inherited attributes from the EvaluatedClassAnalyzer.

public ObjectName
public TypeConverter

Returns:

The type converter.
getTypeConverter
(EvaluatedType
The type for which we need a TypeConverter.
type
)

Construct or lookup the TypeConverter for the given type.

public String
getTypeName(Class<?> cls, String fieldName, String nameFromAnnotation)

public boolean
public boolean
public <K, V> void
putIfNotPresent(final Map<K, V> map, final K key, final V value)

public boolean
public boolean
public boolean
Inherited from org.glassfish.gmbal.ManagedObjectManager:
addAnnotationaddInheritedAnnotationscreateRootcreateRootcreateRootdumpSkeletongetAMXClientgetDomaingetMBeanServergetObjectgetObjectNamegetObjectRegistrationManagergetResourceBundlegetRootisManagedObjectregisterregisterregisterAtRootregisterAtRootresumeJMXRegistrationsetJMXRegistrationDebugsetMBeanServersetRegistrationDebugsetResourceBundlesetRuntimeDebugsetTypelibDebugstripPackagePrefixstripPrefixsuppressDuplicateRootReportsuspendJMXRegistrationunregister

Method Detail

constructMBeanback to summary
public MBeanImpl constructMBean(MBeanImpl parentEntity, Object obj, String name)
forAnnotationback to summary
public <T extends EvaluatedDeclaration> UnaryPredicate<T> forAnnotation(Class<? extends Annotation> annotation, Class<T> elemType)

References Deprecated

UnaryPredicate is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

getAnnotationback to summary
public <T extends Annotation> T getAnnotation(AnnotatedElement element, Class<T> type)
getAnnotationsback to summary
public Collection<Annotation> getAnnotations(AnnotatedElement element)
getAttributesback to summary
public Pair<Map<String, AttributeDescriptor>, Map<String, AttributeDescriptor>> getAttributes(EvaluatedClassAnalyzer ca, ManagedObjectManagerInternal.AttributeDescriptorType adt)
getClassAnalyzerback to summary
public Pair<EvaluatedClassDeclaration, EvaluatedClassAnalyzer> getClassAnalyzer(EvaluatedClassDeclaration cls, Class<? extends Annotation> annotationClass)

Find the superclass or superinterface of cls (which may be cls itself) that has the given annotationClass as an annotation. If the annotated Class has an IncludeSubclass annotation, add those classes into the EvaluatedClassAnalyzer for the annotated class.

Parameters
cls:EvaluatedClassDeclaration

The class for which we need a EvaluatedClassAnalyzer.

annotationClass:Class<? extends Annotation>

The annotation that must be present on cls or a superclass or superinterface.

Returns:Pair<EvaluatedClassDeclaration, EvaluatedClassAnalyzer>

A Pair of the parent class of cls, and the EvaluatedClassAnalyzer.

getDefaultAMXMetadataback to summary
public AMXMetadata getDefaultAMXMetadata()
getDescriptionback to summary
public String getDescription(EvaluatedDeclaration element)
getFacetAccessorback to summary
public FacetAccessor getFacetAccessor(Object obj)
getFirstAnnotationOnClassback to summary
public <T extends Annotation> T getFirstAnnotationOnClass(EvaluatedClassDeclaration element, Class<T> type)
getInheritedAttributesback to summary
public List<InheritedAttribute> getInheritedAttributes(EvaluatedClassAnalyzer ca)

Get the inherited attributes from the EvaluatedClassAnalyzer.

Parameters
ca:EvaluatedClassAnalyzer

The ClassAnalyzer to check for InheritedAttribute(s).

Returns:List<InheritedAttribute>

The inherited attributes.

getRootParentNameback to summary
public ObjectName getRootParentName()
getTypeConverterback to summary
public TypeConverter getTypeConverter(EvaluatedType type)

Construct or lookup the TypeConverter for the given type.

Parameters
type:EvaluatedType

The type for which we need a TypeConverter.

Returns:TypeConverter

The type converter.

getTypeNameback to summary
public String getTypeName(Class<?> cls, String fieldName, String nameFromAnnotation)
isAMXAttributeNameback to summary
public boolean isAMXAttributeName(String name)
jmxRegistrationDebugback to summary
public boolean jmxRegistrationDebug()
putIfNotPresentback to summary
public <K, V> void putIfNotPresent(final Map<K, V> map, final K key, final V value)
registrationDebugback to summary
public boolean registrationDebug()
registrationFineDebugback to summary
public boolean registrationFineDebug()
runtimeDebugback to summary
public boolean runtimeDebug()
org.glassfish.gmbal.impl back to summary

public final Enum ManagedObjectManagerInternal.AttributeDescriptorType

extends Enum<ManagedObjectManagerInternal.AttributeDescriptorType>
Class Inheritance

Used in getAttributes to indicate type of Attribute being considered. This matters because JMX (unforunately) defines different rules for converting method names to attribute ids in MBeans and in CompositeData: for MBeans, an initial get or set is stripped, leaving an ID with an initial upper case letter; for CompositeData, JMX follows the JavaBeans conventions, and converts the first letter of the ID to lower case. Since getAttributes is used in both cases, it needs to know the difference.

Field Summary

Modifier and TypeField and Description
public static final ManagedObjectManagerInternal.AttributeDescriptorType
public static final ManagedObjectManagerInternal.AttributeDescriptorType

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ManagedObjectManagerInternal.AttributeDescriptorType
public static ManagedObjectManagerInternal.AttributeDescriptorType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

COMPOSITE_DATA_ATTRback to summary
public static final ManagedObjectManagerInternal.AttributeDescriptorType COMPOSITE_DATA_ATTR
MBEAN_ATTRback to summary
public static final ManagedObjectManagerInternal.AttributeDescriptorType MBEAN_ATTR

Constructor Detail

AttributeDescriptorTypeback to summary
private AttributeDescriptorType()

Method Detail

valueOfback to summary
public static ManagedObjectManagerInternal.AttributeDescriptorType valueOf(String name)
valuesback to summary
public static ManagedObjectManagerInternal.AttributeDescriptorType[] values()