Class PropertyAccessImpl
java.lang.Object
org.apache.tapestry5.beanmodel.internal.services.PropertyAccessImpl
- All Implemented Interfaces:
PropertyAccess
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClears the cache of adapters and asks theIntrospectorto clear its cache.Reads the value of a property.getAdapter(Class forClass) Returns the adapter used to access properties within the indicated class.getAdapter(Object instance) Returns the adapter for a particular object instance.getAnnotation(Object instance, String propertyName, Class<? extends Annotation> annotationClass) Returns the annotation of a given property for the specified type if such an annotation is present, else null.voidUpdates the value of a property.
-
Constructor Details
-
PropertyAccessImpl
public PropertyAccessImpl()
-
-
Method Details
-
get
Description copied from interface:PropertyAccessReads the value of a property.- Specified by:
getin interfacePropertyAccess
-
set
Description copied from interface:PropertyAccessUpdates the value of a property.- Specified by:
setin interfacePropertyAccess
-
getAnnotation
public Annotation getAnnotation(Object instance, String propertyName, Class<? extends Annotation> annotationClass) Description copied from interface:PropertyAccessReturns the annotation of a given property for the specified type if such an annotation is present, else null. A convenience over invokingPropertyAccess.getAdapter(Object).ClassPropertyAdapter.getPropertyAdapter(String).AnnotationProvider.getAnnotation(Class)- Specified by:
getAnnotationin interfacePropertyAccess- Parameters:
instance- the object to read a value frompropertyName- the name of the property to read (case is ignored)annotationClass- the type of annotation to return
-
clearCache
Clears the cache of adapters and asks theIntrospectorto clear its cache.- Specified by:
clearCachein interfacePropertyAccess
-
getAdapter
Description copied from interface:PropertyAccessReturns the adapter for a particular object instance. A convienience over invokingPropertyAccess.getAdapter(Class).- Specified by:
getAdapterin interfacePropertyAccess
-
getAdapter
Description copied from interface:PropertyAccessReturns the adapter used to access properties within the indicated class.- Specified by:
getAdapterin interfacePropertyAccess
-