Package org.apache.tapestry5.internal.services

## Class EnumValueEncoderFactory<E extends java.lang.Enum<E>>

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

- Type Parameters:
    `E` - the type of the value
  All Implemented Interfaces:
    `ValueEncoderFactory<E>`

      @Deprecated
      public class EnumValueEncoderFactory<E extends java.lang.Enum<E>>
      extends java.lang.Object
      implements ValueEncoderFactory<E>

  Deprecated.
  this class is superseded by `TypeCoercedValueEncoderFactory` and scheduled to be removed in Tapestry 5.5
  Factory that provides a configured instance of `EnumValueEncoder`.

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `EnumValueEncoderFactory​(TypeCoercer typeCoercer)` | Deprecated.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `ValueEncoder<E>` | `create​(java.lang.Class<E> type)` | Deprecated. 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)

      Deprecated.

  - ### Method Detail

    - #### create

          public ValueEncoder<E> create​(java.lang.Class<E> type)

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