com.sun.faces.application
Class ConverterPropertyEditorFactory

java.lang.Object
  extended by com.sun.faces.application.ConverterPropertyEditorFactory

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 Summary
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.
 
Method Summary
 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).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConverterPropertyEditorFactory

public ConverterPropertyEditorFactory()
Create a ConverterPropertyEditorFactory that uses the default template class (ConverterPropertyEditorFor_XXXX).


ConverterPropertyEditorFactory

public ConverterPropertyEditorFactory(java.lang.Class<? extends ConverterPropertyEditorBase> templateClass)
Create a ConverterPropertyEditorFactory that uses the specified template class.

Parameters:
templateClass -
Method Detail

getDefaultInstance

public static ConverterPropertyEditorFactory getDefaultInstance()
Return the single default instance of this class (created with the default template class).


definePropertyEditorClassFor

public java.lang.Class<? extends ConverterPropertyEditorBase> definePropertyEditorClassFor(java.lang.Class<?> targetClass)
Return a PropertyEditor class appropriate for editing the given targetClass. 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.


Copyright ? 2002-2006 Sun Microsystems, Inc. All Rights Reserved.