Package org.apache.tiles.ognl
Class DelegatePropertyAccessor<T>
- java.lang.Object
-
- 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 aPropertyAccessorDelegateFactory
to delegate the methods to anotherPropertyAccessor
.- Since:
- 2.2.0
- Version:
- $Rev: 1049696 $ $Date: 2010-12-16 07:30:10 +1100 (Thu, 16 Dec 2010) $
-
-
Constructor Summary
Constructors Constructor Description DelegatePropertyAccessor(PropertyAccessorDelegateFactory<T> factory)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
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 interfaceognl.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 interfaceognl.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 interfaceognl.PropertyAccessor
-
getSourceSetter
public java.lang.String getSourceSetter(ognl.OgnlContext context, java.lang.Object target, java.lang.Object index)
- Specified by:
getSourceSetter
in interfaceognl.PropertyAccessor
-
-