Package org.apache.struts2.ognl.accessor

# Class XWorkMethodAccessor

java.lang.Object
ognl.ObjectMethodAccessor
org.apache.struts2.ognl.accessor.XWorkMethodAccessor

All Implemented Interfaces:
  `ognl.MethodAccessor`

public class XWorkMethodAccessor extends ognl.ObjectMethodAccessor
Allows methods to be executed under normal cirumstances, except when `ReflectionContextState.DENY_METHOD_EXECUTION` is in the action context with a value of true.

Author:
  Patrick Lightbody, tmjee

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `XWorkMethodAccessor()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Object`
  `callMethod(Map context, Object object, String string, Object[] objects)`
  `Object`
  `callStaticMethod(Map context, Class aClass, String string, Object[] objects)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### XWorkMethodAccessor

    public XWorkMethodAccessor()

- ## Method Details

  - ### callMethod

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

  - ### callStaticMethod

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