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,InternalDestroyable,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(ognl.OgnlContext context, Object target, String name, Object[] objects) callStaticMethod(ognl.OgnlContext transientVars, Class aClass, String s, Object[] objects) classForName(String className, ognl.OgnlContext context) static voidvoiddestroy()Releases static state held by this component.getProperty(ognl.OgnlContext 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(ognl.OgnlContext 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(ognl.OgnlContext context, Object target, Object name, Object value) throws ognl.OgnlException - Specified by:
setPropertyin interfaceognl.PropertyAccessor- Throws:
ognl.OgnlException
-
getProperty
public Object getProperty(ognl.OgnlContext context, Object target, Object name) throws ognl.OgnlException - Specified by:
getPropertyin interfaceognl.PropertyAccessor- Throws:
ognl.OgnlException
-
callMethod
public Object callMethod(ognl.OgnlContext context, Object target, String name, Object[] objects) throws ognl.MethodFailedException - Specified by:
callMethodin interfaceognl.MethodAccessor- Throws:
ognl.MethodFailedException
-
callStaticMethod
public Object callStaticMethod(ognl.OgnlContext 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
-
clearCache
public static void clearCache() -
destroy
public void destroy()Description copied from interface:InternalDestroyableReleases static state held by this component. Called once duringDispatcher.cleanup().- Specified by:
destroyin interfaceInternalDestroyable- Since:
- 7.2.0
-