com.atlassian.crowd.xwork
Class XWorkVersionSupport

java.lang.Object
  extended by com.atlassian.crowd.xwork.XWorkVersionSupport

public class XWorkVersionSupport
extends Object

Utility interface for abstracting binary or API-incompatible aspects of different XWork versions.


Constructor Summary
XWorkVersionSupport()
           
 
Method Summary
 com.opensymphony.xwork.Action extractAction(com.opensymphony.xwork.ActionInvocation invocation)
          Works around binary incompatibility of ActionInvocation#getAction between XWork 1.0 and 1.2.
 Method extractMethod(com.opensymphony.xwork.ActionInvocation invocation)
          Works around missing ActionConfig#getMethod in Xwork 1.2.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XWorkVersionSupport

public XWorkVersionSupport()
Method Detail

extractAction

public com.opensymphony.xwork.Action extractAction(com.opensymphony.xwork.ActionInvocation invocation)
Works around binary incompatibility of ActionInvocation#getAction between XWork 1.0 and 1.2.

Parameters:
invocation - the action invocation
Returns:
the associated action

extractMethod

public Method extractMethod(com.opensymphony.xwork.ActionInvocation invocation)
                     throws NoSuchMethodException
Works around missing ActionConfig#getMethod in Xwork 1.2.

Parameters:
invocation - the action invocation
Returns:
the associated action
Throws:
NoSuchMethodException - if a method could not be found for the action


Copyright © 2013 Atlassian. All Rights Reserved.