org.jboss.cache.aop
Class CachedType

java.lang.Object
  extended by org.jboss.cache.aop.CachedType

public class CachedType
extends java.lang.Object

Represent a cached object type, e.g., whether it is primitive or not.

Author:
Harald Gliebe, Ben Wang

Field Summary
protected  java.util.Map attributeMap
           
protected  java.util.List attributes
           
protected  java.util.Map fieldMap
           
protected  java.util.List fields
           
protected  boolean immediate
           
protected static java.util.Set immediates
           
protected  boolean immutable
           
protected  java.lang.Class type
           
 
Constructor Summary
CachedType()
           
CachedType(java.lang.Class type)
           
 
Method Summary
protected  java.lang.String attributeName(java.lang.String methodName)
           
protected  CachedAttribute getAttribute(java.lang.reflect.Method method, java.util.Map map, boolean create)
           
 java.lang.reflect.Field getField(java.lang.String name)
           
 java.util.List getFields()
           
 java.lang.Class getType()
           
protected  boolean isGet(java.lang.reflect.Method method)
           
 boolean isImmediate()
           
static boolean isImmediate(java.lang.Class clazz)
           
 boolean isImmutable()
           
static boolean isNonReplicatable(java.lang.reflect.Field f)
           
protected  boolean isSet(java.lang.reflect.Method method)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

immediates

protected static java.util.Set immediates

type

protected java.lang.Class type

immutable

protected boolean immutable

immediate

protected boolean immediate

attributes

protected java.util.List attributes

attributeMap

protected java.util.Map attributeMap

fields

protected java.util.List fields

fieldMap

protected java.util.Map fieldMap
Constructor Detail

CachedType

public CachedType()

CachedType

public CachedType(java.lang.Class type)
Method Detail

getType

public java.lang.Class getType()

isImmediate

public boolean isImmediate()

isImmediate

public static boolean isImmediate(java.lang.Class clazz)

isImmutable

public boolean isImmutable()

getFields

public java.util.List getFields()

getField

public java.lang.reflect.Field getField(java.lang.String name)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isNonReplicatable

public static boolean isNonReplicatable(java.lang.reflect.Field f)

attributeName

protected java.lang.String attributeName(java.lang.String methodName)

getAttribute

protected CachedAttribute getAttribute(java.lang.reflect.Method method,
                                       java.util.Map map,
                                       boolean create)

isGet

protected boolean isGet(java.lang.reflect.Method method)

isSet

protected boolean isSet(java.lang.reflect.Method method)


Copyright ? 1998-2005 JBoss Inc . All Rights Reserved.