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 theTypeCoercer- Since:
- 5.3
-
-
Constructor Summary
Constructors Constructor Description TypeCoercerProxyImpl(ObjectLocator locator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <S,T>
Tcoerce(S input, java.lang.Class<T> targetType)Returns input cast to targetType if input is an instance of target type, otherwise delegates toTypeCoercer.coerce(Object, Class).
-
-
-
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:TypeCoercerProxyReturns input cast to targetType if input is an instance of target type, otherwise delegates toTypeCoercer.coerce(Object, Class).- Specified by:
coercein interfaceTypeCoercerProxy- Parameters:
input- value to be coercedtargetType- desired type of value- Returns:
- the value, coerced
-
-