Class PropertyEditorFactory


  • public final class PropertyEditorFactory
    extends java.lang.Object
    A factory that creates a new PropertyEditor 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 java.beans.PropertyEditor getInstance​(java.lang.Class<?> type)
      Creates a new instance of editor, depending on the given type
      static java.beans.PropertyEditor getInstance​(java.lang.Object object)
      Creates a new instance of editor, depending on the given object's type
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getInstance

        public static java.beans.PropertyEditor getInstance​(java.lang.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 java.beans.PropertyEditor getInstance​(java.lang.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