Package com.sun.faces.application
Class ConverterPropertyEditorFactory
- java.lang.Object
-
- com.sun.faces.application.ConverterPropertyEditorFactory
-
public class ConverterPropertyEditorFactory extends Object
Factory for dynamically generating PropertyEditor classes that extend
ConverterPropertyEditorBaseand replace any references to the target class from the template with a supplied target class.
-
-
Constructor Summary
Constructors Constructor Description ConverterPropertyEditorFactory()Create aConverterPropertyEditorFactorythat uses the default template class (ConverterPropertyEditorFor_XXXX).ConverterPropertyEditorFactory(Class<? extends ConverterPropertyEditorBase> templateClass)Create aConverterPropertyEditorFactorythat uses the specified template class.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends ConverterPropertyEditorBase>definePropertyEditorClassFor(Class<?> targetClass)Return a PropertyEditor class appropriate for editing the giventargetClass.static ConverterPropertyEditorFactorygetDefaultInstance()
-
-
-
Constructor Detail
-
ConverterPropertyEditorFactory
public ConverterPropertyEditorFactory()
Create aConverterPropertyEditorFactorythat uses the default template class (ConverterPropertyEditorFor_XXXX).
-
ConverterPropertyEditorFactory
public ConverterPropertyEditorFactory(Class<? extends ConverterPropertyEditorBase> templateClass)
Create aConverterPropertyEditorFactorythat uses the specified template class.- Parameters:
templateClass- the template
-
-
Method Detail
-
getDefaultInstance
public static ConverterPropertyEditorFactory getDefaultInstance()
- Returns:
- the single default instance of this class (created with the default template class).
-
definePropertyEditorClassFor
public Class<? extends ConverterPropertyEditorBase> definePropertyEditorClassFor(Class<?> targetClass)
Return a PropertyEditor class appropriate for editing the giventargetClass. The new class will be defined from a DisposableClassLoader.- Parameters:
targetClass- the class of object that the returned property editor class will be editing.- Returns:
- the dynamically generated PropertyEditor class.
-
-