public class GridReflectionCache extends Object implements Externalizable
Modifier and Type | Field and Description |
---|---|
static int |
DFLT_REFLECTION_CACHE_SIZE |
Constructor and Description |
---|
GridReflectionCache()
Reflection cache without any method or field predicates.
|
GridReflectionCache(@Nullable IgnitePredicate<Field> fp,
@Nullable IgnitePredicate<Method> mp)
Reflection cache with specified field and method predicates.
|
Modifier and Type | Method and Description |
---|---|
List<Field> |
fields(Class<?> cls)
Gets fields.
|
@Nullable Field |
firstField(Class<?> cls)
Gets first field in the class list of fields.
|
@Nullable Object |
firstFieldValue(Object o)
Gets field value for object.
|
@Nullable Method |
firstMethod(Class<?> cls)
Gets first method in the class list of methods.
|
@Nullable 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 @Nullable IgnitePredicate<Field> fp, @Nullable @Nullable IgnitePredicate<Method> mp)
fp
- Field predicate.mp
- Method predicate.@Nullable public @Nullable Object firstFieldValue(Object o) throws IgniteCheckedException
o
- Key to get affinity key for.null
if field was not found.IgniteCheckedException
- If failed.@Nullable public @Nullable Object firstMethodValue(Object o) throws IgniteCheckedException
o
- Key to get affinity key for.null
if method was not found.IgniteCheckedException
- If failed.@Nullable public @Nullable Field firstField(Class<?> cls)
cls
- Class.@Nullable public @Nullable 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 Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021