Class CoercingPropertyConduitWrapper
-
- org.apache.tapestry5.beanmodel.internal.services.CoercingPropertyConduitWrapper
-
- All Implemented Interfaces:
PropertyConduit
,PropertyConduit2
,AnnotationProvider
public class CoercingPropertyConduitWrapper extends implements PropertyConduit2
-
-
Constructor Summary
Constructors Constructor Description CoercingPropertyConduitWrapper(PropertyConduit conduit, TypeCoercer coercer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description instance)
Reads the property from the instance.<T extends >
T<T> annotationClass)
Searches for the specified annotation, returning the matching annotation instance.getPropertyGenericType()
Returns the generic type of the propertygetPropertyType()
Returns the type of the property read or updated by the conduit.void
instance, value)
Changes the current value of the property.
-
-
-
Constructor Detail
-
CoercingPropertyConduitWrapper
public CoercingPropertyConduitWrapper(PropertyConduit conduit, TypeCoercer coercer)
-
-
Method Detail
-
get
public instance)
Description copied from interface:PropertyConduit
Reads the property from the instance.- Specified by:
get
in interfacePropertyConduit
- Parameters:
instance
- object containing the property- Returns:
- the current value of the property
-
getAnnotation
public <T extends > T <T> annotationClass)
Description copied from interface:AnnotationProvider
Searches for the specified annotation, returning the matching annotation instance.- Specified by:
getAnnotation
in interfaceAnnotationProvider
- Parameters:
annotationClass
- used to select the annotation to return- Returns:
- the annotation, or null if not found
-
getPropertyType
public getPropertyType()
Description copied from interface:PropertyConduit
Returns the type of the property read or updated by the conduit.- Specified by:
getPropertyType
in interfacePropertyConduit
-
getPropertyGenericType
public getPropertyGenericType()
Description copied from interface:PropertyConduit2
Returns the generic type of the property- Specified by:
getPropertyGenericType
in interfacePropertyConduit2
- See Also:
- ,
-
set
public void instance, value)
Description copied from interface:PropertyConduit
Changes the current value of the property.- Specified by:
set
in interfacePropertyConduit
- Parameters:
instance
- object containing the propertyvalue
- to change the property to
-
-