| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final LRUHybridCache | |
| private final int | |
| private final LRUHybridCache | |
| private final LRUHybridCache | |
| private final LRUHybridCache |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | clean(Class<?> clazz)
Implements org. Removes this class (and all appropriate sub-classes) from the cache |
| public MethodWrapper | createMethodWrapper(Method m)
Implements org. Creates a method wrapper from the given method |
| public void | dispose()
Implements org. Releases the entire cache, though the ClassReflectionHelper is still usable after calling dispose |
| public Method | findPostConstruct(final Class<?> clazz, Class<?> matchingClass)
Implements org. Finds the postConstruct method on this class |
| public Method | findPreDestroy(final Class<?> clazz, Class<?> matchingClass)
Implements org. Finds the preDestroy method on this class |
| public Set | getAllFields(final Class<?> clazz)
Implements org. Gets all fields for a class (taking class heirarchy into account) |
| public Set | getAllMethods(final Class<?> clazz)
Implements org. Gets all methods for a class (taking class heirarchy into account) |
| private Method | |
| private Method | |
| public int | size()
Implements org. Returns an approximation of the current size of the cache |
| public String |
| fieldCache | back to summary |
|---|---|
| private final LRUHybridCache<Class<?>, Set<Field>> fieldCache | |
| MAX_CACHE_SIZE | back to summary |
|---|---|
| private final int MAX_CACHE_SIZE | |
| methodCache | back to summary |
|---|---|
| private final LRUHybridCache<Class<?>, Set<MethodWrapper>> methodCache | |
| postConstructCache | back to summary |
|---|---|
| private final LRUHybridCache<ClassReflectionHelperImpl. | |
| preDestroyCache | back to summary |
|---|---|
| private final LRUHybridCache<ClassReflectionHelperImpl. | |
| ClassReflectionHelperImpl | back to summary |
|---|---|
| public ClassReflectionHelperImpl() | |
| clean | back to summary |
|---|---|
| public void clean(Class<?> clazz) Implements org. Doc from org. Removes this class (and all appropriate sub-classes) from the cache
| |
| createMethodWrapper | back to summary |
|---|---|
| public MethodWrapper createMethodWrapper(Method m) Implements org. Doc from org. Creates a method wrapper from the given method
| |
| dispose | back to summary |
|---|---|
| public void dispose() Implements org. Doc from org. Releases the entire cache, though the ClassReflectionHelper is still usable after calling dispose
| |
| findPostConstruct | back to summary |
|---|---|
| public Method findPostConstruct(final Class<?> clazz, Class<?> matchingClass) throws IllegalArgumentException Implements org. Doc from org. Finds the postConstruct method on this class
| |
| findPreDestroy | back to summary |
|---|---|
| public Method findPreDestroy(final Class<?> clazz, Class<?> matchingClass) throws IllegalArgumentException Implements org. Doc from org. Finds the preDestroy method on this class
| |
| getAllFields | back to summary |
|---|---|
| public Set Implements org. Doc from org. Gets all fields for a class (taking class heirarchy into account)
| |
| getAllMethods | back to summary |
|---|---|
| public Set Implements org. Doc from org. Gets all methods for a class (taking class heirarchy into account)
| |
| getPostConstructMethod | back to summary |
|---|---|
| private Method getPostConstructMethod(Class<?> clazz, Class<?> matchingClass) | |
| getPreDestroyMethod | back to summary |
|---|---|
| private Method getPreDestroyMethod(Class<?> clazz, Class<?> matchingClass) | |
| size | back to summary |
|---|---|
| public int size() Implements org. Doc from org. Returns an approximation of the current size of the cache
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Class | |
| private final int | |
| private final Class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public int |
| clazz | back to summary |
|---|---|
| private final Class<?> clazz | |
| hash | back to summary |
|---|---|
| private final int hash | |
| matchingClass | back to summary |
|---|---|
| private final Class<?> matchingClass | |
| LifecycleKey | back to summary |
|---|---|
| private LifecycleKey(Class<?> clazz, Class<?> matchingClass) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |