public class CoercingPropertyConduitWrapper extends java.lang.Object implements PropertyConduit2
Constructor and Description |
---|
CoercingPropertyConduitWrapper(PropertyConduit conduit,
TypeCoercer coercer) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.Object instance)
Reads the property from the instance.
|
<T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<T> annotationClass)
Searches for the specified annotation, returning the matching annotation instance.
|
java.lang.reflect.Type |
getPropertyGenericType()
Returns the generic type of the property
|
java.lang.Class |
getPropertyType()
Returns the type of the property read or updated by the conduit.
|
void |
set(java.lang.Object instance,
java.lang.Object value)
Changes the current value of the property.
|
public CoercingPropertyConduitWrapper(PropertyConduit conduit, TypeCoercer coercer)
public java.lang.Object get(java.lang.Object instance)
PropertyConduit
get
in interface PropertyConduit
instance
- object containing the propertypublic <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
AnnotationProvider
getAnnotation
in interface AnnotationProvider
annotationClass
- used to select the annotation to returnpublic java.lang.Class getPropertyType()
PropertyConduit
getPropertyType
in interface PropertyConduit
public java.lang.reflect.Type getPropertyGenericType()
PropertyConduit2
getPropertyGenericType
in interface PropertyConduit2
Method.getGenericReturnType()
,
Field.getGenericType()
public void set(java.lang.Object instance, java.lang.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.