org.glassfish.gmbal.impl
Interface ManagedObjectManagerInternal

All Superinterfaces:
java.io.Closeable, ManagedObjectManager
All Known Implementing Classes:
ManagedObjectManagerImpl

public interface ManagedObjectManagerInternal
extends ManagedObjectManager

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 Class Summary
static class ManagedObjectManagerInternal.AttributeDescriptorType
          Used in getAttributes to indicate type of Attribute being considered.
 
Nested classes/interfaces inherited from interface org.glassfish.gmbal.ManagedObjectManager
ManagedObjectManager.RegistrationDebugLevel
 
Method Summary
 MBeanImpl constructMBean(MBeanImpl parentEntity, java.lang.Object obj, java.lang.String name)
           
<T extends EvaluatedDeclaration>
forAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotation, java.lang.Class<T> elemType)
           
<T extends java.lang.annotation.Annotation>
T
getAnnotation(java.lang.reflect.AnnotatedElement element, java.lang.Class<T> type)
           
 java.util.Collection<java.lang.annotation.Annotation> getAnnotations(java.lang.reflect.AnnotatedElement element)
           
  getAttributes(EvaluatedClassAnalyzer ca, ManagedObjectManagerInternal.AttributeDescriptorType adt)
           
  getClassAnalyzer(EvaluatedClassDeclaration cls, java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
          Find the superclass or superinterface of cls (which may be cls itself) that has the given annotationClass as an annotation.
 AMXMetadata getDefaultAMXMetadata()
           
 java.lang.String getDescription(EvaluatedDeclaration element)
           
 FacetAccessor getFacetAccessor(java.lang.Object obj)
           
<T extends java.lang.annotation.Annotation>
T
getFirstAnnotationOnClass(EvaluatedClassDeclaration element, java.lang.Class<T> type)
           
 java.util.List<InheritedAttribute> getInheritedAttributes(EvaluatedClassAnalyzer ca)
          Get the inherited attributes from the EvaluatedClassAnalyzer.
 javax.management.ObjectName getRootParentName()
           
 TypeConverter getTypeConverter(EvaluatedType type)
          Construct or lookup the TypeConverter for the given type.
 java.lang.String getTypeName(java.lang.Class<?> cls, java.lang.String fieldName, java.lang.String nameFromAnnotation)
           
 boolean isAMXAttributeName(java.lang.String name)
           
 boolean jmxRegistrationDebug()
           
<K,V> void
putIfNotPresent(java.util.Map<K,V> map, K key, V value)
           
 boolean registrationDebug()
           
 boolean registrationFineDebug()
           
 boolean runtimeDebug()
           
 
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
 
Methods inherited from interface java.io.Closeable
close
 

Method Detail

getTypeConverter

TypeConverter getTypeConverter(EvaluatedType type)
Construct or lookup the TypeConverter for the given type.

Parameters:
type - The type for which we need a TypeConverter.
Returns:
The type converter.

getDescription

java.lang.String getDescription(EvaluatedDeclaration element)

getAnnotation

<T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.reflect.AnnotatedElement element,
                                                            java.lang.Class<T> type)

getAnnotations

java.util.Collection<java.lang.annotation.Annotation> getAnnotations(java.lang.reflect.AnnotatedElement element)

getClassAnalyzer

 getClassAnalyzer(EvaluatedClassDeclaration cls,
                       java.lang.Class<? extends java.lang.annotation.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

java.util.List<InheritedAttribute> getInheritedAttributes(EvaluatedClassAnalyzer ca)
Get the inherited attributes from the EvaluatedClassAnalyzer.

Parameters:
ca - The ClassAnalyzer to check for InheritedAttribute(s).
Returns:
The inherited attributes.

getAttributes

 getAttributes(EvaluatedClassAnalyzer ca,
                    ManagedObjectManagerInternal.AttributeDescriptorType adt)

putIfNotPresent

<K,V> void putIfNotPresent(java.util.Map<K,V> map,
                           K key,
                           V value)

getTypeName

java.lang.String getTypeName(java.lang.Class<?> cls,
                             java.lang.String fieldName,
                             java.lang.String nameFromAnnotation)

forAnnotation

<T extends EvaluatedDeclaration>  forAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
                                                     java.lang.Class<T> elemType)

getFacetAccessor

FacetAccessor getFacetAccessor(java.lang.Object obj)

constructMBean

MBeanImpl constructMBean(MBeanImpl parentEntity,
                         java.lang.Object obj,
                         java.lang.String name)

getRootParentName

javax.management.ObjectName getRootParentName()

registrationDebug

boolean registrationDebug()

registrationFineDebug

boolean registrationFineDebug()

jmxRegistrationDebug

boolean jmxRegistrationDebug()

runtimeDebug

boolean runtimeDebug()

getDefaultAMXMetadata

AMXMetadata getDefaultAMXMetadata()

getFirstAnnotationOnClass

<T extends java.lang.annotation.Annotation> T getFirstAnnotationOnClass(EvaluatedClassDeclaration element,
                                                                        java.lang.Class<T> type)

isAMXAttributeName

boolean isAMXAttributeName(java.lang.String name)