|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.geronimo.common.propertyeditor.PropertyEditors
public class PropertyEditors
The property editor manager. This orchestrates Geronimo usage of property editors, allowing additional search paths to be added and specific editors to be registered.
| Constructor Summary | |
|---|---|
PropertyEditors()
|
|
| Method Summary | |
|---|---|
static void |
appendEditorSearchPath(List newNames)
Append additional package names to the property editor search path. |
static void |
appendEditorSearchPath(String newName)
Append a single package name to the editor search path. |
static void |
appendEditorSearchPath(String[] newNames)
Append an array of package names to the editor search path. |
static PropertyEditor |
findEditor(Class type)
Locate an editor for qiven class of object. |
static PropertyEditor |
findEditor(String typeName,
ClassLoader loader)
Locate an editor for qiven class of object, resolved within the context of a specific ClassLoader instance. |
static PropertyEditor |
getEditor(Class type)
Get a property editor for a given property type. |
static List |
getEditorSearchPath()
Get a list containing all of the packages in the editor search path. |
static void |
registerEditor(Class type,
Class editorType)
Explicity register an editor class for a given target class. |
static void |
registerEditor(String typeName,
String editorName)
Explicity register a property/editor class pair by class name. |
static void |
setEditorSearchPath(List path)
Sets the search order used for property editor resolution. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyEditors()
| Method Detail |
|---|
public static PropertyEditor findEditor(Class type)
type - The target object class of the property.
public static PropertyEditor findEditor(String typeName,
ClassLoader loader)
throws ClassNotFoundException
typeName - The type name of target property class.loader - The source ClassLoader instance.
ClassNotFoundException - Thrown if unable to resolve an appropriate editor class.public static PropertyEditor getEditor(Class type)
type - The target object class of the property.
PropertyEditorException - Unable to find a suitable editor for this class.
public static void registerEditor(Class type,
Class editorType)
type - The property class.editorType - The editor class matched up with this type.
public static void registerEditor(String typeName,
String editorName)
throws ClassNotFoundException
typeName - The classname of the property.editorName - The classname of the property editor.
ClassNotFoundException - Thrown if unable to resolve either the type or the editor from their names.public static List getEditorSearchPath()
public static void setEditorSearchPath(List path)
path - The serach path.public static void appendEditorSearchPath(List newNames)
names - The package names to append.public static void appendEditorSearchPath(String[] newNames)
names - A string array containing the added names.public static void appendEditorSearchPath(String newName)
name - The new path name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||