com.opensymphony.xwork.interceptor.component
Class ComponentInterceptor

java.lang.Object
  extended by com.opensymphony.xwork.interceptor.AroundInterceptor
      extended by com.opensymphony.xwork.interceptor.component.ComponentInterceptor
All Implemented Interfaces:
Interceptor, Serializable

Deprecated. WebWork's IoC has been deprecated, please use an alternative such as Spring.

public class ComponentInterceptor
extends AroundInterceptor

A simple interceptor that applies the WebWork IOC container ComponentManager against the executing action. Note, WebWork IOC is deprecated and it is highly recommended that you look at alternative solutions, such as Spring.

Interceptor parameters:

Extending the interceptor:

There are no known extension points to this interceptor.

Example code:

 
 <action name="someAction" class="com.examples.SomeAction">
     <interceptor-ref name="componentStack"/>
     <interceptor-ref name="basicStack"/>
     <result name="success">good_result.ftl</result>
 </action>
 
 

Version:
$Revision: 860 $
Author:
joew@thoughtworks.com, plightbo
See Also:
Serialized Form

Field Summary
static String COMPONENT_MANAGER
          Deprecated.  
 
Fields inherited from class com.opensymphony.xwork.interceptor.AroundInterceptor
log
 
Constructor Summary
ComponentInterceptor()
          Deprecated.  
 
Method Summary
protected  void after(ActionInvocation dispatcher, String result)
          Deprecated. Called after the invocation has been executed.
protected  void before(ActionInvocation dispatcher)
          Deprecated. Called before the invocation has been executed.
 void init()
          Deprecated. Called after an interceptor is created, but before any requests are processed using intercept , giving the Interceptor a chance to initialize any needed resources.
 
Methods inherited from class com.opensymphony.xwork.interceptor.AroundInterceptor
destroy, intercept
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_MANAGER

public static final String COMPONENT_MANAGER
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

ComponentInterceptor

public ComponentInterceptor()
Deprecated. 
Method Detail

init

public void init()
Deprecated. 
Description copied from interface: Interceptor
Called after an interceptor is created, but before any requests are processed using intercept , giving the Interceptor a chance to initialize any needed resources.

Specified by:
init in interface Interceptor
Overrides:
init in class AroundInterceptor

after

protected void after(ActionInvocation dispatcher,
                     String result)
              throws Exception
Deprecated. 
Description copied from class: AroundInterceptor
Called after the invocation has been executed.

Specified by:
after in class AroundInterceptor
result - the result value returned by the invocation
Throws:
Exception

before

protected void before(ActionInvocation dispatcher)
               throws Exception
Deprecated. 
Description copied from class: AroundInterceptor
Called before the invocation has been executed.

Specified by:
before in class AroundInterceptor
Throws:
Exception

XWork Project Page