Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tapestry5.ioc.internal
Class TypeCoercerProxyImpl

    java.lang.Object
      org.apache.tapestry5.ioc.internal.TypeCoercerProxyImpl

All Implemented Interfaces:
  TypeCoercerProxy

    public final class TypeCoercerProxyImpl

extends java.lang.Object
implements TypeCoercerProxy

A proxy for the `TypeCoercer`

Since:
  5.3

Constructor Summary
`TypeCoercerProxyImpl(ObjectLocator locator)`

Method Summary
`
`<S,T> T`
` | `coerce(S input, java.lang.Class<T> targetType)` Returns input cast to targetType if input is an instance of target type, otherwise delegates to `TypeCoercer.coerce(Object, Class)`.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### TypeCoercerProxyImpl

    public TypeCoercerProxyImpl(ObjectLocator locator)

Method Detail

### coerce

    public <S,T> T coerce(S input,
                          java.lang.Class<T> targetType)

  Description copied from interface: `TypeCoercerProxy`
  Returns input cast to targetType if input is an instance of target type, otherwise delegates to `TypeCoercer.coerce(Object, Class)`.

  Specified by:
    `coerce` in interface `TypeCoercerProxy`
  Parameters:
    `input` - value to be coerced
    `targetType` - desired type of value
  Returns:
    the value, coerced

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2012 The Apache Software Foundation.