co.uk.hjcs.canyon.accessor
Class PropertyAccessorFactory

java.lang.Object
  extended by co.uk.hjcs.canyon.accessor.PropertyAccessorFactory

public class PropertyAccessorFactory
extends java.lang.Object

Maintains the accessors required by Canyon for use. by default will return the DefaultPropertyAccessor, but will also manage any custom defined accessor instances

Author:
HJC Solutions Ltd (http://canyon.hjcsolutions.co.uk)

Constructor Summary
PropertyAccessorFactory()
           
 
Method Summary
static PropertyAccessor getPropertyAccessor(java.lang.String className)
          Returns a PropertyAccessor.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyAccessorFactory

public PropertyAccessorFactory()
Method Detail

getPropertyAccessor

public static final PropertyAccessor getPropertyAccessor(java.lang.String className)
                                                  throws CanyonException
Returns a PropertyAccessor. If the accessor is a custom defined instance, it will create an instance of it based on the className, cache it for future use and return it.

Parameters:
className -
Returns:
- the PropertyAccessor for the chosen className
Throws:
CanyonException