public class CoercingPropertyConduitWrapper extends Object implements PropertyConduit2
Constructor and Description |
---|
CoercingPropertyConduitWrapper(PropertyConduit conduit,
TypeCoercer coercer) |
Modifier and Type | Method and Description |
---|---|
Object |
get(Object instance)
Reads the property from the instance.
|
<T extends Annotation> |
getAnnotation(Class<T> annotationClass)
Searches for the specified annotation, returning the matching annotation instance.
|
Type |
getPropertyGenericType()
Returns the generic type of the property
|
Class |
getPropertyType()
Returns the type of the property read or updated by the conduit.
|
void |
set(Object instance,
Object value)
Changes the current value of the property.
|
public CoercingPropertyConduitWrapper(PropertyConduit conduit, TypeCoercer coercer)
public Object get(Object instance)
PropertyConduit
get
in interface PropertyConduit
instance
- object containing the propertypublic <T extends Annotation> T getAnnotation(Class<T> annotationClass)
AnnotationProvider
getAnnotation
in interface AnnotationProvider
annotationClass
- used to select the annotation to returnpublic Class getPropertyType()
PropertyConduit
getPropertyType
in interface PropertyConduit
public Type getPropertyGenericType()
PropertyConduit2
getPropertyGenericType
in interface PropertyConduit2
Method.getGenericReturnType()
,
Field.getGenericType()
public void set(Object instance, Object value)
PropertyConduit
set
in interface PropertyConduit
instance
- object containing the propertyvalue
- to change the property to${project.version} - Copyright © 2003-2015 The Apache Software Foundation.