public abstract class PropertyEditorFinder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
_EDITOR |
protected static String |
_EDITOR_ARRAY |
protected static Logger |
logger |
| Constructor and Description |
|---|
PropertyEditorFinder() |
| Modifier and Type | Method and Description |
|---|---|
abstract PropertyEditor |
find(Class<?> type)
Returns PropertyEditor which capable of converting String into instances of
type parameter. |
abstract String[] |
getEditorSearchPackages() |
static PropertyEditorFinder |
getInstance()
Returns instance of property finder.
|
protected static Class<?> |
getPrimitiveTypeForName(String name) |
protected static Class<?> |
getWrapperTypeFor(Class<?> primitive) |
abstract void |
register(Class<?> type,
Class<? extends PropertyEditor> editor)
If supported, this method register editor class for specific type.
|
abstract void |
setEditorSearchPackages(String[] packages)
If supported this sets search packages.
|
protected static String |
stripPackage(Class<?> clazz) |
protected static String |
stripPackage(String fqn) |
protected static Logger logger
protected static final String _EDITOR
protected static final String _EDITOR_ARRAY
public abstract PropertyEditor find(Class<?> type)
type parameter.type - - class object representing type of property beeing converted from String to object instance.public abstract void register(Class<?> type, Class<? extends PropertyEditor> editor)
find(Class) method.type - - class object representing type of property, ie. int[].class, InetAddress.classeditor - - editor class which is capable of converting type, to and from String.public abstract void setEditorSearchPackages(String[] packages)
packages - - set of packages, ie. {"com.sun.beans","custom.editors"}public abstract String[] getEditorSearchPackages()
public static PropertyEditorFinder getInstance()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.