org.apache.tiles.ognl
Class TilesContextPropertyAccessorDelegateFactory

Package class diagram package TilesContextPropertyAccessorDelegateFactory
java.lang.Object
  extended by org.apache.tiles.ognl.TilesContextPropertyAccessorDelegateFactory
All Implemented Interfaces:
PropertyAccessorDelegateFactory<org.apache.tiles.request.Request>

public class TilesContextPropertyAccessorDelegateFactory
extends Object
implements PropertyAccessorDelegateFactory<org.apache.tiles.request.Request>

Decides the appropriate PropertyAccessor for the given property name and Request.

Since:
2.2.0
Version:
$Rev: 1049696 $ $Date: 2010-12-15 15:30:10 -0500 (Wed, 15 Dec 2010) $

Constructor Summary
TilesContextPropertyAccessorDelegateFactory(ognl.PropertyAccessor objectPropertyAccessor, ognl.PropertyAccessor applicationContextPropertyAccessor, ognl.PropertyAccessor anyScopePropertyAccessor, ognl.PropertyAccessor scopePropertyAccessor)
          Constructor.
 
Method Summary
 ognl.PropertyAccessor getPropertyAccessor(String propertyName, org.apache.tiles.request.Request request)
          Returns a prooerty accessor appropriate for the property name and the object passed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TilesContextPropertyAccessorDelegateFactory

public TilesContextPropertyAccessorDelegateFactory(ognl.PropertyAccessor objectPropertyAccessor,
                                                   ognl.PropertyAccessor applicationContextPropertyAccessor,
                                                   ognl.PropertyAccessor anyScopePropertyAccessor,
                                                   ognl.PropertyAccessor scopePropertyAccessor)
Constructor.

Parameters:
objectPropertyAccessor - The plain object property accessor, to be used directly for Request.
applicationContextPropertyAccessor - The application context property accessor.
anyScopePropertyAccessor - The request scope property accessor.
scopePropertyAccessor - The session scope property accessor.
Since:
2.2.0
Method Detail

getPropertyAccessor

public ognl.PropertyAccessor getPropertyAccessor(String propertyName,
                                                 org.apache.tiles.request.Request request)
Returns a prooerty accessor appropriate for the property name and the object passed.

Specified by:
getPropertyAccessor in interface PropertyAccessorDelegateFactory<org.apache.tiles.request.Request>
Parameters:
propertyName - The name of the property.
request - The root object to evaluate.
Returns:
The appropriate property accessor.


Copyright © 2001-2012 Apache Software Foundation. All Rights Reserved.