|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.cache.aop.CachedType
public class CachedType
Represent a cached object type, e.g., whether it is primitive or not. Note: need to pay special attention not to leak classloader.
| Field Summary | |
|---|---|
protected static java.util.Map |
CachedClassWithAnnotation_
|
protected static java.util.Map |
CachedClassWithNoAnnotation_
|
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.ref.WeakReference |
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()
A List of all of this type's replicatable
fields. |
java.util.Iterator |
getFieldsIterator()
Returns an iterator over this CachedType's fields. |
java.lang.Class |
getType()
|
protected static boolean |
hasAnnotation(java.lang.Class clazz,
org.jboss.aop.Advisor advisor,
CachedType type)
We check whether this class has any field annotation declaration. |
protected static boolean |
hasFieldAnnotation(java.lang.reflect.Field field,
org.jboss.aop.Advisor advisor)
|
static boolean |
hasSerializableAnnotation(java.lang.reflect.Field field,
org.jboss.aop.Advisor advisor)
|
static boolean |
hasSerializableAnnotation(org.jboss.aop.joinpoint.FieldInvocation invocation)
|
protected static boolean |
hasTransientAnnotation(java.lang.reflect.Field field,
org.jboss.aop.Advisor advisor)
|
protected static boolean |
hasTransientAnnotation(org.jboss.aop.joinpoint.FieldInvocation invocation)
Check if we have @Transient annotation. |
protected boolean |
isGet(java.lang.reflect.Method method)
|
boolean |
isImmediate()
|
static boolean |
isImmediate(java.lang.Class clazz)
|
boolean |
isImmutable()
|
static boolean |
isNonReplicatable(org.jboss.aop.joinpoint.FieldInvocation fieldInvocation)
|
protected static boolean |
isPrimitiveNonReplicatable(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 |
|---|
protected static final java.util.Set immediates
protected java.lang.ref.WeakReference type
protected boolean immutable
protected boolean immediate
protected static java.util.Map CachedClassWithNoAnnotation_
protected static java.util.Map CachedClassWithAnnotation_
protected java.util.List fields
protected java.util.Map fieldMap
| Constructor Detail |
|---|
public CachedType()
public CachedType(java.lang.Class type)
| Method Detail |
|---|
public java.lang.Class getType()
public boolean isImmediate()
public static boolean isImmediate(java.lang.Class clazz)
public boolean isImmutable()
public java.util.List getFields()
List of all of this type's replicatable
fields.
isPrimitiveNonReplicatable(Field)public java.util.Iterator getFieldsIterator()
getFields().iterator(), as it saves the step of making a
defensive copy of the fields list.
Note that the iterator does not support remove()
public java.lang.reflect.Field getField(java.lang.String name)
public java.lang.String toString()
toString in class java.lang.Object
protected static boolean hasAnnotation(java.lang.Class clazz,
org.jboss.aop.Advisor advisor,
CachedType type)
protected static boolean isPrimitiveNonReplicatable(java.lang.reflect.Field f)
protected static boolean hasTransientAnnotation(org.jboss.aop.joinpoint.FieldInvocation invocation)
invocation -
protected static boolean hasFieldAnnotation(java.lang.reflect.Field field,
org.jboss.aop.Advisor advisor)
protected static boolean hasTransientAnnotation(java.lang.reflect.Field field,
org.jboss.aop.Advisor advisor)
public static boolean hasSerializableAnnotation(java.lang.reflect.Field field,
org.jboss.aop.Advisor advisor)
public static boolean hasSerializableAnnotation(org.jboss.aop.joinpoint.FieldInvocation invocation)
public static boolean isNonReplicatable(org.jboss.aop.joinpoint.FieldInvocation fieldInvocation)
protected java.lang.String attributeName(java.lang.String methodName)
protected CachedAttribute getAttribute(java.lang.reflect.Method method,
java.util.Map map,
boolean create)
protected boolean isGet(java.lang.reflect.Method method)
protected boolean isSet(java.lang.reflect.Method method)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||