rewrite-integration-faces 2.0.0.Alpha3

org.ocpsoft.rewrite.faces.config
Class FacesConverter<T>

java.lang.Object
  extended by org.ocpsoft.rewrite.faces.config.FacesConverter<T>
All Implemented Interfaces:
Converter<T>

public class FacesConverter<T>
extends Object
implements Converter<T>

Adapter class that allows to use JSF converters with Rewrite.

Author:
Christian Kaltepoth

Constructor Summary
FacesConverter(Class<?> targetType)
           
FacesConverter(String converterId)
          Create an adapter for the specified converter ID.
 
Method Summary
 T convert(Rewrite event, EvaluationContext context, Object value)
           
static
<T> FacesConverter<T>
forId(String converterId)
          Creates a converter with the given ID.
static
<T> FacesConverter<T>
forType(Class<?> targetType)
          Creates a converter adapter for the given target type.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FacesConverter

public FacesConverter(Class<?> targetType)

FacesConverter

public FacesConverter(String converterId)
Create an adapter for the specified converter ID. The adapter will use Application.createConverter(String) to obtain the underlying JSF converter.

Method Detail

forType

public static <T> FacesConverter<T> forType(Class<?> targetType)
Creates a converter adapter for the given target type. The converter will use Application.createConverter(Class) to obtain the underlying JSF converter.


forId

public static <T> FacesConverter<T> forId(String converterId)
Creates a converter with the given ID. The converter will use Application#createConverter(String)) to obtain the underlying JSF converter.


convert

public T convert(Rewrite event,
                 EvaluationContext context,
                 Object value)
Specified by:
convert in interface Converter<T>

toString

public String toString()
Overrides:
toString in class Object

rewrite-integration-faces 2.0.0.Alpha3

Copyright © 2013 OCPsoft. All Rights Reserved.