public class DefaultPropertyEditorFinder extends PropertyEditorFinder
| Modifier and Type | Field and Description |
|---|---|
protected Map<Class<?>,Class<? extends PropertyEditor>> |
register |
_EDITOR, _EDITOR_ARRAY, logger| Constructor and Description |
|---|
DefaultPropertyEditorFinder() |
| Modifier and Type | Method and Description |
|---|---|
PropertyEditor |
find(Class<?> type)
Returns PropertyEditor which capable of converting String into instances of
type parameter. |
String[] |
getEditorSearchPackages()
Get packages in which editors should be looked up.
|
void |
register(Class<?> type,
Class<? extends PropertyEditor> editor)
If supported, this method register editor class for specific type.
|
void |
setEditorSearchPackages(String[] packages)
Sets packages in which editors should be looked up.
|
getInstance, getPrimitiveTypeForName, getWrapperTypeFor, stripPackage, stripPackageprotected Map<Class<?>,Class<? extends PropertyEditor>> register
public void setEditorSearchPackages(String[] packages)
setEditorSearchPackages in class PropertyEditorFinderpackages - public String[] getEditorSearchPackages()
getEditorSearchPackages in class PropertyEditorFinderpublic void register(Class<?> type, Class<? extends PropertyEditor> editor)
PropertyEditorFinderPropertyEditorFinder.find(Class) method.register in class PropertyEditorFindertype - - class object representing type of property, ie. int[].class, InetAddress.classeditor - - editor class which is capable of converting type, to and from String.public PropertyEditor find(Class<?> type)
PropertyEditorFindertype parameter.find in class PropertyEditorFindertype - - class object representing type of property beeing converted from String to object instance.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.