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)
PropertyConduitget in interface PropertyConduitinstance - object containing the propertypublic <T extends Annotation> T getAnnotation(Class<T> annotationClass)
AnnotationProvidergetAnnotation in interface AnnotationProviderannotationClass - used to select the annotation to returnpublic Class getPropertyType()
PropertyConduitgetPropertyType in interface PropertyConduitpublic Type getPropertyGenericType()
PropertyConduit2getPropertyGenericType in interface PropertyConduit2Method.getGenericReturnType(),
Field.getGenericType()public void set(Object instance, Object value)
PropertyConduitset in interface PropertyConduitinstance - object containing the propertyvalue - to change the property to5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.