public class ConverterPropertyEditorFactory
extends java.lang.Object
Factory for dynamically generating PropertyEditor classes that extend
ConverterPropertyEditorBase and replace any references to the target
class from the template with a supplied target class.
| Constructor and Description |
|---|
ConverterPropertyEditorFactory()
Create a
ConverterPropertyEditorFactory that uses the
default template class (ConverterPropertyEditorFor_XXXX). |
ConverterPropertyEditorFactory(java.lang.Class<? extends ConverterPropertyEditorBase> templateClass)
Create a
ConverterPropertyEditorFactory that uses the
specified template class. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<? extends ConverterPropertyEditorBase> |
definePropertyEditorClassFor(java.lang.Class<?> targetClass)
Return a PropertyEditor class appropriate for editing the given
targetClass. |
static ConverterPropertyEditorFactory |
getDefaultInstance()
Return the single default instance of this class (created with the
default template class).
|
public ConverterPropertyEditorFactory()
ConverterPropertyEditorFactory that uses the
default template class (ConverterPropertyEditorFor_XXXX).public ConverterPropertyEditorFactory(java.lang.Class<? extends ConverterPropertyEditorBase> templateClass)
ConverterPropertyEditorFactory that uses the
specified template class.templateClass - public static ConverterPropertyEditorFactory getDefaultInstance()
public java.lang.Class<? extends ConverterPropertyEditorBase> definePropertyEditorClassFor(java.lang.Class<?> targetClass)
targetClass. The new class will be defined from a
DisposableClassLoader.targetClass - the class of object that the returned property editor class
will be editing.Copyright ? 2002-2006 Sun Microsystems, Inc. All Rights Reserved.