com.opensymphony.xwork.util
Class XWorkMethodAccessor

java.lang.Object
  extended by ognl.ObjectMethodAccessor
      extended by com.opensymphony.xwork.util.XWorkMethodAccessor
All Implemented Interfaces:
ognl.MethodAccessor

public class XWorkMethodAccessor
extends ognl.ObjectMethodAccessor

Allows methods to be executed under normal cirumstances, except when DENY_METHOD_EXECUTION is in the action context with a value of true.

Author:
Patrick Lightbody

Field Summary
static java.lang.String DENY_INDEXED_ACCESS_EXECUTION
           
static java.lang.String DENY_METHOD_EXECUTION
           
 
Constructor Summary
XWorkMethodAccessor()
           
 
Method Summary
 java.lang.Object callMethod(java.util.Map context, java.lang.Object object, java.lang.String string, java.lang.Object[] objects)
           
 java.lang.Object callStaticMethod(java.util.Map context, java.lang.Class aClass, java.lang.String string, java.lang.Object[] objects)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DENY_METHOD_EXECUTION

public static final java.lang.String DENY_METHOD_EXECUTION
See Also:
Constant Field Values

DENY_INDEXED_ACCESS_EXECUTION

public static final java.lang.String DENY_INDEXED_ACCESS_EXECUTION
See Also:
Constant Field Values
Constructor Detail

XWorkMethodAccessor

public XWorkMethodAccessor()
Method Detail

callMethod

public java.lang.Object callMethod(java.util.Map context,
                                   java.lang.Object object,
                                   java.lang.String string,
                                   java.lang.Object[] objects)
                            throws ognl.MethodFailedException
Specified by:
callMethod in interface ognl.MethodAccessor
Overrides:
callMethod in class ognl.ObjectMethodAccessor
Throws:
ognl.MethodFailedException

callStaticMethod

public java.lang.Object callStaticMethod(java.util.Map context,
                                         java.lang.Class aClass,
                                         java.lang.String string,
                                         java.lang.Object[] objects)
                                  throws ognl.MethodFailedException
Specified by:
callStaticMethod in interface ognl.MethodAccessor
Overrides:
callStaticMethod in class ognl.ObjectMethodAccessor
Throws:
ognl.MethodFailedException

XWork Project Page