Uses of Interface
org.apache.tapestry5.commons.services.Coercion
Packages that use Coercion
Package
Description
[INTERNAL USE ONLY] support classes for the JSON module; API subject to change
[INTERNAL USE ONLY] utility classes for Tapestry IOC services; API subject to change
-
Uses of Coercion in org.apache.tapestry5.commons.internal.services
Classes in org.apache.tapestry5.commons.internal.services that implement CoercionModifier and TypeClassDescriptionclass
CompoundCoercion<S,
I, T> Combines two coercions to create a coercion through an intermediate type.Methods in org.apache.tapestry5.commons.internal.services that return CoercionModifier and TypeMethodDescription<S,
T> Coercion<S, T> TypeCoercerImpl.getCoercion
(Class<S> sourceType, Class<T> targetType) Methods in org.apache.tapestry5.commons.internal.services with parameters of type CoercionModifier and TypeMethodDescriptionstatic String
ServiceMessages.failedCoercion
(Object input, Class targetType, Coercion coercion, Throwable cause) Constructors in org.apache.tapestry5.commons.internal.services with parameters of type Coercion -
Uses of Coercion in org.apache.tapestry5.commons.services
Methods in org.apache.tapestry5.commons.services that return CoercionModifier and TypeMethodDescriptionCoercionTuple.getCoercion()
<S,
T> Coercion<S, T> TypeCoercer.getCoercion
(Class<S> sourceType, Class<T> targetType) Given a source and target type, computes the coercion that will be used.Methods in org.apache.tapestry5.commons.services with parameters of type CoercionModifier and TypeMethodDescriptionstatic <S,
T> void CoercionTuple.add
(MappedConfiguration<CoercionTuple.Key, CoercionTuple> configuration, Class<S> sourceType, Class<T> targetType, Coercion<S, T> coercion) Convenience method to create a coercion tuple using CoercionTuple.create(Class, Class, Coercion) and add it to a MappedConfiguration in a single step.static <S,
T> CoercionTuple<S, T> Convenience constructor to help with generics.static <S,
T> void CoercionTuple.override
(MappedConfiguration<CoercionTuple.Key, CoercionTuple> configuration, Class<S> sourceType, Class<T> targetType, Coercion<S, T> coercion) Convenience method to create a coercion tuple using CoercionTuple.create(Class, Class, Coercion) and override a matching one in a MappedConfiguration in a single step.Constructors in org.apache.tapestry5.commons.services with parameters of type Coercion -
Uses of Coercion in org.apache.tapestry5.commons.util
Classes in org.apache.tapestry5.commons.util that implement CoercionModifier and TypeClassDescriptionfinal class
StringToEnumCoercion<T extends Enum>
ACoercion
for converting strings into an instance of a particular enumerated type. -
Uses of Coercion in org.apache.tapestry5.internal.json
Classes in org.apache.tapestry5.internal.json that implement Coercion -
Uses of Coercion in org.apache.tapestry5.ioc.internal.util
Methods in org.apache.tapestry5.ioc.internal.util with parameters of type Coercion