Class CoercingPropertyConduitWrapper
- java.lang.Object
-
- org.apache.tapestry5.beanmodel.internal.services.CoercingPropertyConduitWrapper
-
- All Implemented Interfaces:
PropertyConduit,PropertyConduit2,AnnotationProvider
public class CoercingPropertyConduitWrapper extends Object 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 Objectget(Object instance)Reads the property from the instance.<T extends Annotation>
TgetAnnotation(Class<T> annotationClass)Searches for the specified annotation, returning the matching annotation instance.TypegetPropertyGenericType()Returns the generic type of the propertyClassgetPropertyType()Returns the type of the property read or updated by the conduit.voidset(Object instance, Object value)Changes the current value of the property.
-
-
-
Constructor Detail
-
CoercingPropertyConduitWrapper
public CoercingPropertyConduitWrapper(PropertyConduit conduit, TypeCoercer coercer)
-
-
Method Detail
-
get
public Object get(Object instance)
Description copied from interface:PropertyConduitReads the property from the instance.- Specified by:
getin interfacePropertyConduit- Parameters:
instance- object containing the property- Returns:
- the current value of the property
-
getAnnotation
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
Description copied from interface:AnnotationProviderSearches for the specified annotation, returning the matching annotation instance.- Specified by:
getAnnotationin interfaceAnnotationProvider- Parameters:
annotationClass- used to select the annotation to return- Returns:
- the annotation, or null if not found
-
getPropertyType
public Class getPropertyType()
Description copied from interface:PropertyConduitReturns the type of the property read or updated by the conduit.- Specified by:
getPropertyTypein interfacePropertyConduit
-
getPropertyGenericType
public Type getPropertyGenericType()
Description copied from interface:PropertyConduit2Returns the generic type of the property- Specified by:
getPropertyGenericTypein interfacePropertyConduit2- See Also:
Method.getGenericReturnType(),Field.getGenericType()
-
set
public void set(Object instance, Object value)
Description copied from interface:PropertyConduitChanges the current value of the property.- Specified by:
setin interfacePropertyConduit- Parameters:
instance- object containing the propertyvalue- to change the property to
-
-