public class ClassReflectionHelperImpl extends Object implements ClassReflectionHelper
| Constructor and Description |
|---|
ClassReflectionHelperImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clean(Class<?> clazz)
Removes this class (and all appropriate sub-classes) from the cache
|
void |
dispose()
Releases the entire cache
|
Method |
findPostConstruct(Class<?> clazz,
Class<?> matchingClass)
Finds the postConstruct method on this class
|
Method |
findPreDestroy(Class<?> clazz,
Class<?> matchingClass)
Finds the preDestroy method on this class
|
Set<Field> |
getAllFields(Class<?> clazz)
Gets all fields for a class (taking class heirarchy into account)
|
Set<Field> |
getAllFieldWrappers(Class<?> clazz) |
Set<MethodWrapper> |
getAllMethods(Class<?> clazz)
Gets all methods for a class (taking class heirarchy into account)
|
Set<MethodWrapper> |
getAllMethodWrappers(Class<?> clazz) |
String |
toString() |
public Set<MethodWrapper> getAllMethodWrappers(Class<?> clazz)
public Set<MethodWrapper> getAllMethods(Class<?> clazz)
ClassReflectionHelpergetAllMethods in interface ClassReflectionHelperclazz - The class to analyze for all methodspublic Set<Field> getAllFields(Class<?> clazz)
ClassReflectionHelpergetAllFields in interface ClassReflectionHelperclazz - The class to analyze for all fieldspublic Method findPostConstruct(Class<?> clazz, Class<?> matchingClass) throws IllegalArgumentException
ClassReflectionHelperfindPostConstruct in interface ClassReflectionHelperclazz - The class to check for the postConstruct methodmatchingClass - The PostConstruct interface, a small performance improvementIllegalArgumentException - If a method marked as postConstruct is invalidpublic Method findPreDestroy(Class<?> clazz, Class<?> matchingClass) throws IllegalArgumentException
ClassReflectionHelperfindPreDestroy in interface ClassReflectionHelperclazz - The class to check for the postConstruct methodmatchingClass - The PostConstruct interface, a small performance improvementIllegalArgumentException - If a method marked as postConstruct is invalidpublic void clean(Class<?> clazz)
ClassReflectionHelperclean in interface ClassReflectionHelperclazz - The class to remove. If null this method does nothingpublic void dispose()
ClassReflectionHelperdispose in interface ClassReflectionHelperCopyright © 2009–2014 Oracle Corporation. All rights reserved.