org.jboss.common.beans.property.finder
Class DefaultPropertyEditorFinder
java.lang.Object
org.jboss.common.beans.property.finder.PropertyEditorFinder
org.jboss.common.beans.property.finder.DefaultPropertyEditorFinder
public class DefaultPropertyEditorFinder
- extends PropertyEditorFinder
- Author:
- baranowb
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
register
protected Map<Class<?>,Class<? extends PropertyEditor>> register
DefaultPropertyEditorFinder
public DefaultPropertyEditorFinder()
setEditorSearchPackages
public void setEditorSearchPackages(String[] packages)
- Sets packages in which editors should be looked up.
- Specified by:
setEditorSearchPackages in class PropertyEditorFinder
- Parameters:
packages -
getEditorSearchPackages
public String[] getEditorSearchPackages()
- Get packages in which editors should be looked up.
- Specified by:
getEditorSearchPackages in class PropertyEditorFinder
- Returns:
register
public void register(Class<?> type,
Class<? extends PropertyEditor> editor)
- Description copied from class:
PropertyEditorFinder
- If supported, this method register editor class for specific type. When queried, finder will return registered editor
class. Check {
PropertyEditorFinder.find(Class) method.
- Specified by:
register in class PropertyEditorFinder
- Parameters:
type - - class object representing type of property, ie. int[].class, InetAddress.classeditor - - editor class which is capable of converting type, to and from String.
find
public PropertyEditor find(Class<?> type)
- Description copied from class:
PropertyEditorFinder
- Returns PropertyEditor which capable of converting String into instances of
type parameter.
- Specified by:
find in class PropertyEditorFinder
- Parameters:
type - - class object representing type of property beeing converted from String to object instance.
- Returns:
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.