public class ConverterPropertyEditorFactory extends 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(Class<? extends ConverterPropertyEditorBase> templateClass)
Create a
ConverterPropertyEditorFactory that uses the
specified template class. |
Modifier and Type | Method and Description |
---|---|
Class<? extends ConverterPropertyEditorBase> |
definePropertyEditorClassFor(Class<?> targetClass)
Return a PropertyEditor class appropriate for editing the given
targetClass . |
static ConverterPropertyEditorFactory |
getDefaultInstance() |
public ConverterPropertyEditorFactory()
ConverterPropertyEditorFactory
that uses the
default template class (ConverterPropertyEditorFor_XXXX
).public ConverterPropertyEditorFactory(Class<? extends ConverterPropertyEditorBase> templateClass)
ConverterPropertyEditorFactory
that uses the
specified template class.templateClass
- the templatepublic static ConverterPropertyEditorFactory getDefaultInstance()
public Class<? extends ConverterPropertyEditorBase> definePropertyEditorClassFor(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 © 2010–2019 JBoss by Red Hat. All rights reserved.