Class PropertyAccessImpl
- java.lang.Object
-
- org.apache.tapestry5.beanmodel.internal.services.PropertyAccessImpl
-
- All Implemented Interfaces:
PropertyAccess
public class PropertyAccessImpl extends java.lang.Object implements PropertyAccess
-
-
Constructor Summary
Constructors Constructor Description PropertyAccessImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearCache()Clears the cache of adapters and asks theIntrospectorto clear its cache.java.lang.Objectget(java.lang.Object instance, java.lang.String propertyName)Reads the value of a property.ClassPropertyAdaptergetAdapter(java.lang.Class forClass)Returns the adapter used to access properties within the indicated class.ClassPropertyAdaptergetAdapter(java.lang.Object instance)Returns the adapter for a particular object instance.java.lang.annotation.AnnotationgetAnnotation(java.lang.Object instance, java.lang.String propertyName, java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)Returns the annotation of a given property for the specified type if such an annotation is present, else null.voidset(java.lang.Object instance, java.lang.String propertyName, java.lang.Object value)Updates the value of a property.
-
-
-
Constructor Detail
-
PropertyAccessImpl
public PropertyAccessImpl()
-
-
Method Detail
-
get
public java.lang.Object get(java.lang.Object instance, java.lang.String propertyName)
Description copied from interface:PropertyAccessReads the value of a property.- Specified by:
getin interfacePropertyAccess
-
set
public void set(java.lang.Object instance, java.lang.String propertyName, java.lang.Object value)
Description copied from interface:PropertyAccessUpdates the value of a property.- Specified by:
setin interfacePropertyAccess
-
getAnnotation
public java.lang.annotation.Annotation getAnnotation(java.lang.Object instance, java.lang.String propertyName, java.lang.Class<? extends java.lang.annotation.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
public void clearCache()
Clears the cache of adapters and asks theIntrospectorto clear its cache.- Specified by:
clearCachein interfacePropertyAccess
-
getAdapter
public ClassPropertyAdapter getAdapter(java.lang.Object instance)
Description copied from interface:PropertyAccessReturns the adapter for a particular object instance. A convienience over invokingPropertyAccess.getAdapter(Class).- Specified by:
getAdapterin interfacePropertyAccess
-
getAdapter
public ClassPropertyAdapter getAdapter(java.lang.Class forClass)
Description copied from interface:PropertyAccessReturns the adapter used to access properties within the indicated class.- Specified by:
getAdapterin interfacePropertyAccess
-
-