org.jboss.cache.pojo.impl
Class CachedType

java.lang.Object
  extended by org.jboss.cache.pojo.impl.CachedType

public class CachedType
extends java.lang.Object

Represent a cached object type, e.g., whether it is primitive or not. Note: need to pay special attention not to leak classloader.

Author:
Harald Gliebe, Ben Wang

Constructor Summary
CachedType()
           
CachedType(java.lang.Class type)
           
 
Method Summary
protected static java.lang.String attributeName(java.lang.String methodName)
           
 java.lang.reflect.Field getField(java.lang.String name)
           
 java.util.List getFields()
           
 java.lang.Class getType()
           
protected static boolean isGet(java.lang.reflect.Method method)
           
 boolean isImmediate()
           
 boolean isImmutable()
           
static boolean isNonReplicatable(java.lang.reflect.Field field)
           
protected static boolean isSet(java.lang.reflect.Method method)
           
static boolean isSimpleAttribute(java.lang.reflect.Field field)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CachedType

public CachedType()

CachedType

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

getType

public java.lang.Class getType()

isImmediate

public boolean isImmediate()

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 field)

isSimpleAttribute

public static boolean isSimpleAttribute(java.lang.reflect.Field field)

attributeName

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

isGet

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

isSet

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