com.javaforge.tapestry.prop
Class PropertyAccessorSourceImpl

java.lang.Object
  extended by com.javaforge.tapestry.prop.PropertyAccessorSourceImpl
All Implemented Interfaces:
PropertyAccessorSource, EventListener, org.apache.tapestry.event.ReportStatusListener, org.apache.tapestry.event.ResetEventListener

public class PropertyAccessorSourceImpl
extends Object
implements PropertyAccessorSource, org.apache.tapestry.event.ResetEventListener, org.apache.tapestry.event.ReportStatusListener

Implementation of the tapestry.prop.PropertyAccessorSource service, used to create and cache PropertyAccessor instances.

Author:
Howard M. Lewis Ship

Constructor Summary
PropertyAccessorSourceImpl()
           
 
Method Summary
 PropertyAccessor getAccessor(Object object, String propertyPath)
          Provides a new instance of PropertyAccessor for a particular object and property name.
 void reportStatus(org.apache.tapestry.event.ReportStatusEvent event)
           
 void resetEventDidOccur()
           
 void setAccessorClassFactory(PropertyAccessorClassFactory accessorClassFactory)
          For injection.
 void setServiceId(String serviceId)
          For injection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyAccessorSourceImpl

public PropertyAccessorSourceImpl()
Method Detail

getAccessor

public PropertyAccessor getAccessor(Object object,
                                    String propertyPath)
Description copied from interface: PropertyAccessorSource
Provides a new instance of PropertyAccessor for a particular object and property name. The implementation is expected to cache PropertyAccessor based on object class and property name.

Specified by:
getAccessor in interface PropertyAccessorSource
Parameters:
object - the object for which a PropertyAccessor should be found or created
propertyPath - the name of a property, or a dotted sequence of property names
Returns:
an instantiated PropertyAccessor that provides access to the property of the object

resetEventDidOccur

public void resetEventDidOccur()
Specified by:
resetEventDidOccur in interface org.apache.tapestry.event.ResetEventListener

reportStatus

public void reportStatus(org.apache.tapestry.event.ReportStatusEvent event)
Specified by:
reportStatus in interface org.apache.tapestry.event.ReportStatusListener

setServiceId

public void setServiceId(String serviceId)
For injection.


setAccessorClassFactory

public void setAccessorClassFactory(PropertyAccessorClassFactory accessorClassFactory)
For injection.



Copyright © 2005-2007 Howard M. Lewis Ship. All Rights Reserved.