public class DefaultPropertyEditorFinder extends PropertyEditorFinder
Modifier and Type | Field and Description |
---|---|
protected Map<Class<?>,Class<? extends PropertyEditor>> |
register |
EDITOR, EDITOR_ARRAY
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
protected Map<Class<?>,Class<? extends PropertyEditor>> register
public void setEditorSearchPackages(String[] packages)
setEditorSearchPackages
in class PropertyEditorFinder
packages
- public String[] getEditorSearchPackages()
getEditorSearchPackages
in class PropertyEditorFinder
public void register(Class<?> type, Class<? extends PropertyEditor> editor)
PropertyEditorFinder
PropertyEditorFinder.find(Class)
method.register
in class PropertyEditorFinder
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 PropertyEditor find(Class<?> type)
PropertyEditorFinder
type
parameter.find
in class PropertyEditorFinder
type
- - class object representing type of property beeing converted from String to object instance.Copyright © 2014 JBoss by Red Hat. All rights reserved.