public class GridReflectionCache extends Object implements Externalizable
| Constructor and Description |
|---|
GridReflectionCache()
Reflection cache without any method or field predicates.
|
GridReflectionCache(IgnitePredicate<Field> fp,
IgnitePredicate<Method> mp)
Reflection cache with specified field and method predicates.
|
| Modifier and Type | Method and Description |
|---|---|
List<Field> |
fields(Class<?> cls)
Gets fields.
|
Field |
firstField(Class<?> cls)
Gets first field in the class list of fields.
|
Object |
firstFieldValue(Object o)
Gets field value for object.
|
Method |
firstMethod(Class<?> cls)
Gets first method in the class list of methods.
|
Object |
firstMethodValue(Object o)
Gets method return value for object.
|
List<Method> |
methods(Class<?> cls)
Gets methods.
|
void |
readExternal(ObjectInput in) |
void |
writeExternal(ObjectOutput out) |
public GridReflectionCache()
public GridReflectionCache(@Nullable
IgnitePredicate<Field> fp,
@Nullable
IgnitePredicate<Method> mp)
fp - Field predicate.mp - Method predicate.@Nullable public Object firstFieldValue(Object o) throws IgniteCheckedException
o - Key to get affinity key for.null if field was not found.IgniteCheckedException - If failed.@Nullable public Object firstMethodValue(Object o) throws IgniteCheckedException
o - Key to get affinity key for.null if method was not found.IgniteCheckedException - If failed.@Nullable public Field firstField(Class<?> cls)
cls - Class.@Nullable public Method firstMethod(Class<?> cls)
cls - Class.public List<Field> fields(Class<?> cls)
cls - Class.public List<Method> methods(Class<?> cls)
cls - Class.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundException
Follow @ApacheIgnite
Ignite Fabric : ver. 2.2.0 Release Date : September 15 2017