public class PropertyAccessorFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static Map<Class<?>,PropertyAccessor<?>> |
map
The map.
|
static PropertyAccessor<String> |
STRING
Making String Accessor easy to access.
|
| Modifier | Constructor and Description |
|---|---|
private |
PropertyAccessorFactory()
Instantiates a new property accessor factory.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
add(Class<?> key,
PropertyAccessor<?> value)
Adds the.
|
static PropertyAccessor |
getPropertyAccessor(Class<?> clazz)
Gets the property accessor.
|
static PropertyAccessor<?> |
getPropertyAccessor(Field property)
Gets the property accessor.
|
public static Map<Class<?>,PropertyAccessor<?>> map
public static final PropertyAccessor<String> STRING
private PropertyAccessorFactory()
public static PropertyAccessor getPropertyAccessor(Class<?> clazz)
clazz - the clazzpublic static PropertyAccessor<?> getPropertyAccessor(Field property)
property - the propertypublic static void add(Class<?> key, PropertyAccessor<?> value)
key - the keyvalue - the valueCopyright © 2015. All Rights Reserved.