Package org.glassfish.gmbal.impl
Interface ManagedObjectManagerInternal
- All Superinterfaces:
AutoCloseable
,Closeable
,ManagedObjectManager
- All Known Implementing Classes:
ManagedObjectManagerImpl
The internal interface to the ManagedObjectManager that is used in the
gmbal implementation. The methods defined here are not for use by
gmbal clients.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
Used in getAttributes to indicate type of Attribute being considered.Nested classes/interfaces inherited from interface org.glassfish.gmbal.ManagedObjectManager
ManagedObjectManager.RegistrationDebugLevel
-
Method Summary
Modifier and TypeMethodDescriptionconstructMBean
(MBeanImpl parentEntity, Object obj, String name) <T extends EvaluatedDeclaration>
org.glassfish.pfl.basic.func.UnaryPredicate<T> forAnnotation
(Class<? extends Annotation> annotation, Class<T> elemType) <T extends Annotation>
TgetAnnotation
(AnnotatedElement element, Class<T> type) getAnnotations
(AnnotatedElement element) org.glassfish.pfl.basic.contain.Pair
<Map<String, AttributeDescriptor>, Map<String, AttributeDescriptor>> org.glassfish.pfl.basic.contain.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.getDescription
(EvaluatedDeclaration element) org.glassfish.pfl.basic.facet.FacetAccessor
getFacetAccessor
(Object obj) <T extends Annotation>
TgetFirstAnnotationOnClass
(EvaluatedClassDeclaration element, Class<T> type) Get the inherited attributes from the EvaluatedClassAnalyzer.Construct or lookup the TypeConverter for the given type.getTypeName
(Class<?> cls, String fieldName, String nameFromAnnotation) boolean
isAMXAttributeName
(String name) boolean
<K,
V> void putIfNotPresent
(Map<K, V> map, K key, V value) boolean
boolean
boolean
Methods inherited from interface org.glassfish.gmbal.ManagedObjectManager
addAnnotation, addInheritedAnnotations, createRoot, createRoot, createRoot, dumpSkeleton, getAMXClient, getDomain, getMBeanServer, getObject, getObjectName, getObjectRegistrationManager, getResourceBundle, getRoot, isManagedObject, register, register, registerAtRoot, registerAtRoot, resumeJMXRegistration, setJMXRegistrationDebug, setMBeanServer, setRegistrationDebug, setResourceBundle, setRuntimeDebug, setTypelibDebug, stripPackagePrefix, stripPrefix, suppressDuplicateRootReport, suspendJMXRegistration, unregister
-
Method Details
-
getTypeConverter
Construct or lookup the TypeConverter for the given type.- Parameters:
type
- The type for which we need a TypeConverter.- Returns:
- The type converter.
-
getDescription
-
getAnnotation
-
getAnnotations
-
getClassAnalyzer
org.glassfish.pfl.basic.contain.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
- The class for which we need a EvaluatedClassAnalyzer.annotationClass
- The annotation that must be present on cls or a superclass or superinterface.- Returns:
- A Pair of the parent class of cls, and the EvaluatedClassAnalyzer.
-
getInheritedAttributes
Get the inherited attributes from the EvaluatedClassAnalyzer.- Parameters:
ca
- The ClassAnalyzer to check for InheritedAttribute(s).- Returns:
- The inherited attributes.
-
getAttributes
org.glassfish.pfl.basic.contain.Pair<Map<String,AttributeDescriptor>, getAttributesMap<String, AttributeDescriptor>> (EvaluatedClassAnalyzer ca, ManagedObjectManagerInternal.AttributeDescriptorType adt) -
putIfNotPresent
-
getTypeName
-
forAnnotation
<T extends EvaluatedDeclaration> org.glassfish.pfl.basic.func.UnaryPredicate<T> forAnnotation(Class<? extends Annotation> annotation, Class<T> elemType) -
getFacetAccessor
-
constructMBean
-
getRootParentName
ObjectName getRootParentName() -
registrationDebug
boolean registrationDebug() -
registrationFineDebug
boolean registrationFineDebug() -
jmxRegistrationDebug
boolean jmxRegistrationDebug() -
runtimeDebug
boolean runtimeDebug() -
getDefaultAMXMetadata
AMXMetadata getDefaultAMXMetadata() -
getFirstAnnotationOnClass
<T extends Annotation> T getFirstAnnotationOnClass(EvaluatedClassDeclaration element, Class<T> type) -
isAMXAttributeName
-