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 voidsetDevMode(String mode) voidsetProperty(Map context, Object target, Object name, Object value) voiduseDisallowCustomOgnlMap(String disallowCustomOgnlMap)
-
Constructor Details
-
CompoundRootAccessor
public CompoundRootAccessor()
-
-
Method Details
-
getSourceAccessor
Used by OGNl to generate bytecode- Specified by:
getSourceAccessorin interfaceognl.PropertyAccessor
-
getSourceSetter
Used by OGNl to generate bytecode- Specified by:
getSourceSetterin interfaceognl.PropertyAccessor
-
setDevMode
-
useDisallowCustomOgnlMap
-
setProperty
public void setProperty(Map context, Object target, Object name, Object value) throws ognl.OgnlException - Specified by:
setPropertyin interfaceognl.PropertyAccessor- Throws:
ognl.OgnlException
-
getProperty
- Specified by:
getPropertyin interfaceognl.PropertyAccessor- Throws:
ognl.OgnlException
-
callMethod
public Object callMethod(Map context, Object target, String name, Object[] objects) throws ognl.MethodFailedException - Specified by:
callMethodin interfaceognl.MethodAccessor- Throws:
ognl.MethodFailedException
-
callStaticMethod
public Object callStaticMethod(Map transientVars, Class aClass, String s, Object[] objects) throws ognl.MethodFailedException - Specified by:
callStaticMethodin interfaceognl.MethodAccessor- Throws:
ognl.MethodFailedException
-
classForName
- Specified by:
classForNamein interfaceognl.ClassResolver- Throws:
ClassNotFoundException
-