com.gisgraphy.helper
Class IntrospectionHelper
java.lang.Object
com.gisgraphy.helper.IntrospectionHelper
public class IntrospectionHelper
- extends Object
Inspect object and all subClass to retrieve the fields in order to be
used by the ProjectionBean
- Author:
- David Masclet
- See Also:
IntrospectionIgnoredField
Field Summary |
protected static org.slf4j.Logger |
logger
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final org.slf4j.Logger logger
IntrospectionHelper
public IntrospectionHelper()
clearCache
public static void clearCache()
- clear the cache of introspected class
getFieldsAsList
public static List<String> getFieldsAsList(Class<?> clazz)
- Parameters:
clazz
- the class to inspect
- Returns:
- a list of all private fields of the specified class that are not :
The result of the method will be cached
see http://java.sun.com/j2se/1.5.0/docs/api/java/lang/reflect/Field.html
getFieldsAsArray
public static String[] getFieldsAsArray(Class<?> clazz)
- Parameters:
clazz
- the class to inspect
- Returns:
- an Array of all private fields of the specified class that are
not :
The result of the method will be cached
see http://java.sun.com/j2se/1.5.0/docs/api/java/lang/reflect/Field.html
Copyright © 2012. All Rights Reserved.