org.apache.commons.attributes
Class DefaultCachedRepository

java.lang.Object
  extended byorg.apache.commons.attributes.DefaultCachedRepository
All Implemented Interfaces:
CachedRepository

class DefaultCachedRepository
extends java.lang.Object
implements CachedRepository


Nested Class Summary
private static class DefaultCachedRepository.MethodAttributeBundle
           
 
Field Summary
private  java.util.Collection classAttributes
           
private  java.util.Map constructors
           
static CachedRepository EMPTY
           
private static java.util.Collection EMPTY_COLLECTION
           
private  java.util.Map fields
           
private  java.util.Map methods
           
 
Constructor Summary
DefaultCachedRepository(java.lang.Class clazz, AttributeRepositoryClass repo)
           
 
Method Summary
 java.util.Collection getAttributes()
           
 java.util.Collection getAttributes(java.lang.reflect.Constructor c)
           
 java.util.Collection getAttributes(java.lang.reflect.Field f)
           
 java.util.Collection getAttributes(java.lang.reflect.Method m)
           
private static java.util.Collection getInheritableAttributes(java.util.Collection attrs)
           
private static java.util.Collection getInheritableClassAttributes(java.lang.Class c)
           
private static java.util.Collection getInheritableMethodAttributes(java.lang.Class c, java.lang.String methodName, java.lang.Class[] methodParams)
           
private static java.util.Collection getInheritableMethodParameterAttributes(java.lang.Class c, java.lang.String methodName, java.lang.Class[] methodParams, int parameter)
           
private static java.util.Collection getInheritableReturnAttributes(java.lang.Class c, java.lang.String methodName, java.lang.Class[] methodParams)
           
 java.util.Collection getParameterAttributes(java.lang.reflect.Constructor c, int parameter)
           
 java.util.Collection getParameterAttributes(java.lang.reflect.Method m, int parameter)
           
 java.util.Collection getReturnAttributes(java.lang.reflect.Method m)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_COLLECTION

private static final java.util.Collection EMPTY_COLLECTION

classAttributes

private final java.util.Collection classAttributes

fields

private final java.util.Map fields

methods

private final java.util.Map methods

constructors

private final java.util.Map constructors

EMPTY

public static final CachedRepository EMPTY
Constructor Detail

DefaultCachedRepository

public DefaultCachedRepository(java.lang.Class clazz,
                               AttributeRepositoryClass repo)
Method Detail

getInheritableAttributes

private static java.util.Collection getInheritableAttributes(java.util.Collection attrs)

getInheritableClassAttributes

private static java.util.Collection getInheritableClassAttributes(java.lang.Class c)

getInheritableMethodAttributes

private static java.util.Collection getInheritableMethodAttributes(java.lang.Class c,
                                                                   java.lang.String methodName,
                                                                   java.lang.Class[] methodParams)

getInheritableMethodParameterAttributes

private static java.util.Collection getInheritableMethodParameterAttributes(java.lang.Class c,
                                                                            java.lang.String methodName,
                                                                            java.lang.Class[] methodParams,
                                                                            int parameter)

getInheritableReturnAttributes

private static java.util.Collection getInheritableReturnAttributes(java.lang.Class c,
                                                                   java.lang.String methodName,
                                                                   java.lang.Class[] methodParams)

getAttributes

public java.util.Collection getAttributes()
Specified by:
getAttributes in interface CachedRepository

getAttributes

public java.util.Collection getAttributes(java.lang.reflect.Field f)
Specified by:
getAttributes in interface CachedRepository

getAttributes

public java.util.Collection getAttributes(java.lang.reflect.Method m)
Specified by:
getAttributes in interface CachedRepository

getParameterAttributes

public java.util.Collection getParameterAttributes(java.lang.reflect.Constructor c,
                                                   int parameter)
Specified by:
getParameterAttributes in interface CachedRepository

getParameterAttributes

public java.util.Collection getParameterAttributes(java.lang.reflect.Method m,
                                                   int parameter)
Specified by:
getParameterAttributes in interface CachedRepository

getReturnAttributes

public java.util.Collection getReturnAttributes(java.lang.reflect.Method m)
Specified by:
getReturnAttributes in interface CachedRepository

getAttributes

public java.util.Collection getAttributes(java.lang.reflect.Constructor c)
Specified by:
getAttributes in interface CachedRepository