Class PropertyEditorFactory

java.lang.Object
org.apache.mina.integration.beans.PropertyEditorFactory

public final class PropertyEditorFactory extends Object
A factory that creates a new PropertyEditor which is appropriate for the specified object or class.
  • Constructor Details

    • PropertyEditorFactory

      private PropertyEditorFactory()
  • Method Details

    • 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
    • filterPrimitiveType

      private static Class<?> filterPrimitiveType(Class<?> type)