org.apache.tiles.ognl
Class DelegatePropertyAccessor<T>

Package class diagram package DelegatePropertyAccessor
java.lang.Object
  extended by org.apache.tiles.ognl.DelegatePropertyAccessor<T>
Type Parameters:
T - The type of the accessed root object.
All Implemented Interfaces:
ognl.PropertyAccessor

public class DelegatePropertyAccessor<T>
extends java.lang.Object
implements ognl.PropertyAccessor

Uses a PropertyAccessorDelegateFactory to delegate the methods to another PropertyAccessor.

Since:
2.2.0
Version:
$Rev: 817009 $ $Date: 2009-09-20 13:26:26 +0200 (dom, 20 set 2009) $

Constructor Summary
DelegatePropertyAccessor(PropertyAccessorDelegateFactory<T> factory)
          Constructor.
 
Method Summary
 java.lang.Object getProperty(java.util.Map context, java.lang.Object target, java.lang.Object name)
          
 java.lang.String getSourceAccessor(ognl.OgnlContext context, java.lang.Object target, java.lang.Object index)
          
 java.lang.String getSourceSetter(ognl.OgnlContext context, java.lang.Object target, java.lang.Object index)
          
 void setProperty(java.util.Map context, java.lang.Object target, java.lang.Object name, java.lang.Object value)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatePropertyAccessor

public DelegatePropertyAccessor(PropertyAccessorDelegateFactory<T> factory)
Constructor.

Parameters:
factory - The property accessor factory.
Since:
2.2.0
Method Detail

getProperty

public java.lang.Object getProperty(java.util.Map context,
                                    java.lang.Object target,
                                    java.lang.Object name)
                             throws ognl.OgnlException

Specified by:
getProperty in interface ognl.PropertyAccessor
Throws:
ognl.OgnlException

setProperty

public void setProperty(java.util.Map context,
                        java.lang.Object target,
                        java.lang.Object name,
                        java.lang.Object value)
                 throws ognl.OgnlException

Specified by:
setProperty in interface ognl.PropertyAccessor
Throws:
ognl.OgnlException

getSourceAccessor

public java.lang.String getSourceAccessor(ognl.OgnlContext context,
                                          java.lang.Object target,
                                          java.lang.Object index)

Specified by:
getSourceAccessor in interface ognl.PropertyAccessor

getSourceSetter

public java.lang.String getSourceSetter(ognl.OgnlContext context,
                                        java.lang.Object target,
                                        java.lang.Object index)

Specified by:
getSourceSetter in interface ognl.PropertyAccessor


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