Class PropertyEditorFactory
- java.lang.Object
-
- org.apache.mina.integration.beans.PropertyEditorFactory
-
public final class PropertyEditorFactory extends Object
A factory that creates a newPropertyEditor
which is appropriate for the specified object or class.- Author:
- Apache MINA Project
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PropertyEditor
getInstance(Class<?> type)
Creates a new instance of editor, depending on the given typestatic PropertyEditor
getInstance(Object object)
Creates a new instance of editor, depending on the given object's type
-
-
-
Method Detail
-
getInstance
public static PropertyEditor getInstance(Object object)
Creates a new instance of editor, depending on the given object's type- Parameters:
object
- The object we need an editor to be created for- Returns:
- The created editor
-
getInstance
public static PropertyEditor getInstance(Class<?> type)
Creates a new instance of editor, depending on the given type- Parameters:
type
- The type of editor to create- Returns:
- The created editor
-
-