org.apache.tapestry5.internal.services

## Class EnumValueEncoderFactory<E extends Enum<E>>

- java.lang.Object
- - org.apache.tapestry5.internal.services.EnumValueEncoderFactory<E>

- Type Parameters:
    `E` -
  All Implemented Interfaces:
    ValueEncoderFactory<E>

      public class EnumValueEncoderFactory<E extends Enum<E>>
      extends Object
      implements ValueEncoderFactory<E>

  Factory that provides a configured instance of `EnumValueEncoder`.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `EnumValueEncoderFactory(TypeCoercer typeCoercer)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `ValueEncoder<E>` | `create(Class<E> type)` For a given type, create an encoder.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### EnumValueEncoderFactory

          public EnumValueEncoderFactory(TypeCoercer typeCoercer)

  - ### Method Detail

    - #### create

          public ValueEncoder<E> create(Class<E> type)

      Description copied from interface: `ValueEncoderFactory`
      For a given type, create an encoder.
      Specified by:
        `create` in interface `ValueEncoderFactory<E extends Enum<E>>`
      Parameters:
        `type` - type of object for which an encoder is needed
      Returns:
        the encoder for the object

${project.version} - Copyright © 2003-2014 The Apache Software Foundation.