Package org.apache.struts2.ognl.accessor
Class CompoundRootAccessor
java.lang.Object
org.apache.struts2.ognl.accessor.CompoundRootAccessor
- All Implemented Interfaces:
ognl.ClassResolver
,ognl.MethodAccessor
,ognl.PropertyAccessor
,RootAccessor
A stack that is able to call methods on objects in the stack.
- Version:
- $Revision$
- Author:
- $Author$, Rainer Hermanns
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncallMethod
(Map context, Object target, String name, Object[] objects) callStaticMethod
(Map transientVars, Class aClass, String s, Object[] objects) classForName
(String className, Map context) getProperty
(Map context, Object target, Object name) getSourceAccessor
(ognl.OgnlContext context, Object target, Object index) Used by OGNl to generate bytecodegetSourceSetter
(ognl.OgnlContext context, Object target, Object index) Used by OGNl to generate bytecodeprotected void
setDevMode
(String mode) void
setProperty
(Map context, Object target, Object name, Object value) void
useDisallowCustomOgnlMap
(String disallowCustomOgnlMap)
-
Constructor Details
-
CompoundRootAccessor
public CompoundRootAccessor()
-
-
Method Details
-
getSourceAccessor
Used by OGNl to generate bytecode- Specified by:
getSourceAccessor
in interfaceognl.PropertyAccessor
-
getSourceSetter
Used by OGNl to generate bytecode- Specified by:
getSourceSetter
in interfaceognl.PropertyAccessor
-
setDevMode
-
useDisallowCustomOgnlMap
-
setProperty
public void setProperty(Map context, Object target, Object name, Object value) throws ognl.OgnlException - Specified by:
setProperty
in interfaceognl.PropertyAccessor
- Throws:
ognl.OgnlException
-
getProperty
- Specified by:
getProperty
in interfaceognl.PropertyAccessor
- Throws:
ognl.OgnlException
-
callMethod
public Object callMethod(Map context, Object target, String name, Object[] objects) throws ognl.MethodFailedException - Specified by:
callMethod
in interfaceognl.MethodAccessor
- Throws:
ognl.MethodFailedException
-
callStaticMethod
public Object callStaticMethod(Map transientVars, Class aClass, String s, Object[] objects) throws ognl.MethodFailedException - Specified by:
callStaticMethod
in interfaceognl.MethodAccessor
- Throws:
ognl.MethodFailedException
-
classForName
- Specified by:
classForName
in interfaceognl.ClassResolver
- Throws:
ClassNotFoundException
-