|
JBoss Common Beans 1.1.0.Final-redhat-1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.common.beans.property.finder.PropertyEditorFinder
public abstract class PropertyEditorFinder
Simple abstract class to provide base for PropertyEditorFinder service.
| Field Summary | |
|---|---|
protected static String |
EDITOR
|
protected static String |
EDITOR_ARRAY
|
protected static Logger |
logger
|
| Constructor Summary | |
|---|---|
PropertyEditorFinder()
|
|
| Method Summary | |
|---|---|
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. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Logger logger
protected static final String EDITOR
protected static final String EDITOR_ARRAY
| Constructor Detail |
|---|
public PropertyEditorFinder()
| Method Detail |
|---|
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()
|
JBoss Common Beans 1.1.0.Final-redhat-1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||