org.glassfish.gmbal.impl
Interface ManagedObjectManagerInternal

All Superinterfaces:
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, Object obj, String name)
           
<T extends EvaluatedDeclaration>
Predicate<T>
forAnnotation(Class<? extends Annotation> annotation, Class<T> elemType)
           
<T extends Annotation>
T
getAnnotation(AnnotatedElement element, Class<T> type)
           
 Collection<Annotation> getAnnotations(AnnotatedElement element)
           
 Pair<Map<String,AttributeDescriptor>,Map<String,AttributeDescriptor>> getAttributes(EvaluatedClassAnalyzer ca, ManagedObjectManagerInternal.AttributeDescriptorType adt)
           
 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.
 AMXMetadata getDefaultAMXMetadata()
           
 String getDescription(EvaluatedDeclaration element)
           
 FacetAccessor getFacetAccessor(Object obj)
           
<T extends Annotation>
T
getFirstAnnotationOnClass(EvaluatedClassDeclaration element, Class<T> type)
           
 List<InheritedAttribute> getInheritedAttributes(EvaluatedClassAnalyzer ca)
          Get the inherited attributes from the EvaluatedClassAnalyzer.
 ObjectName getRootParentName()
           
 TypeConverter getTypeConverter(EvaluatedType type)
          Construct or lookup the TypeConverter for the given type.
 String getTypeName(Class<?> cls, String fieldName, String nameFromAnnotation)
           
 boolean isAMXAttributeName(String name)
           
 boolean jmxRegistrationDebug()
           
<K,V> void
putIfNotPresent(Map<K,V> map, K key, V value)
           
 boolean registrationDebug()
           
 boolean registrationFineDebug()
           
 boolean runtimeDebug()
           
 
Methods inherited from interface org.glassfish.gmbal.ManagedObjectManager
addAnnotation, createRoot, createRoot, createRoot, dumpSkeleton, getAMXClient, getDomain, getMBeanServer, getObject, getObjectName, 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

String getDescription(EvaluatedDeclaration element)

getAnnotation

<T extends Annotation> T getAnnotation(AnnotatedElement element,
                                       Class<T> type)

getAnnotations

Collection<Annotation> getAnnotations(AnnotatedElement element)

getClassAnalyzer

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

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

Pair<Map<String,AttributeDescriptor>,Map<String,AttributeDescriptor>> getAttributes(EvaluatedClassAnalyzer ca,
                                                                                    ManagedObjectManagerInternal.AttributeDescriptorType adt)

putIfNotPresent

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

getTypeName

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

forAnnotation

<T extends EvaluatedDeclaration> Predicate<T> forAnnotation(Class<? extends Annotation> annotation,
                                                            Class<T> elemType)

getFacetAccessor

FacetAccessor getFacetAccessor(Object obj)

constructMBean

MBeanImpl constructMBean(MBeanImpl parentEntity,
                         Object obj,
                         String name)

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

boolean isAMXAttributeName(String name)


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.