Class PropertyAccessImpl
- java.lang.Object
- 
- org.apache.tapestry5.beanmodel.internal.services.PropertyAccessImpl
 
- 
- All Implemented Interfaces:
- PropertyAccess
 
 public class PropertyAccessImpl extends Object implements PropertyAccess 
- 
- 
Constructor SummaryConstructors Constructor Description PropertyAccessImpl()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearCache()Clears the cache of adapters and asks theIntrospectorto clear its cache.Objectget(Object instance, String propertyName)Reads the value of a property.ClassPropertyAdaptergetAdapter(Class forClass)Returns the adapter used to access properties within the indicated class.ClassPropertyAdaptergetAdapter(Object instance)Returns the adapter for a particular object instance.AnnotationgetAnnotation(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.voidset(Object instance, String propertyName, Object value)Updates the value of a property.
 
- 
- 
- 
Constructor Detail- 
PropertyAccessImplpublic PropertyAccessImpl() 
 
- 
 - 
Method Detail- 
getpublic Object get(Object instance, String propertyName) Description copied from interface:PropertyAccessReads the value of a property.- Specified by:
- getin interface- PropertyAccess
 
 - 
setpublic void set(Object instance, String propertyName, Object value) Description copied from interface:PropertyAccessUpdates the value of a property.- Specified by:
- setin interface- PropertyAccess
 
 - 
getAnnotationpublic 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 interface- PropertyAccess
- Parameters:
- instance- the object to read a value from
- propertyName- the name of the property to read (case is ignored)
- annotationClass- the type of annotation to return
 
 - 
clearCachepublic void clearCache() Clears the cache of adapters and asks theIntrospectorto clear its cache.- Specified by:
- clearCachein interface- PropertyAccess
 
 - 
getAdapterpublic ClassPropertyAdapter getAdapter(Object instance) Description copied from interface:PropertyAccessReturns the adapter for a particular object instance. A convienience over invokingPropertyAccess.getAdapter(Class).- Specified by:
- getAdapterin interface- PropertyAccess
 
 - 
getAdapterpublic ClassPropertyAdapter getAdapter(Class forClass) Description copied from interface:PropertyAccessReturns the adapter used to access properties within the indicated class.- Specified by:
- getAdapterin interface- PropertyAccess
 
 
- 
 
-