com.atlassian.xwork
Interface XWorkVersionSupport

All Known Implementing Classes:
Xwork10VersionSupport, Xwork12VersionSupport

public interface XWorkVersionSupport

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


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.
 

Method Detail

extractAction

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

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 © 2011 Atlassian Pty Ltd. All Rights Reserved.