Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.base.action.interceptor
Class JiveObjectLoaderInterceptor

java.lang.Object
  extended by com.jivesoftware.base.action.interceptor.JiveObjectLoaderInterceptor
All Implemented Interfaces:
com.opensymphony.xwork.interceptor.Interceptor, java.io.Serializable

public class JiveObjectLoaderInterceptor
extends java.lang.Object
implements com.opensymphony.xwork.interceptor.Interceptor

A simple interceptor which picks up on actions that implement the JiveObjectLoader interface. If an object implements that interface the JiveObjectLoader.loadObjects() method will be called and depending on the return code, the interceptor chain will be executed.

See Also:
Serialized Form

Constructor Summary
JiveObjectLoaderInterceptor()
           
 
Method Summary
 void destroy()
          Does nothing in this implementation.
 void init()
          Does nothing in this implementation.
 java.lang.String intercept(com.opensymphony.xwork.ActionInvocation in)
          Calls JiveObjectLoader.loadObjects() if the action implements the JiveObjectLoader interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiveObjectLoaderInterceptor

public JiveObjectLoaderInterceptor()
Method Detail

destroy

public void destroy()
Does nothing in this implementation.

Specified by:
destroy in interface com.opensymphony.xwork.interceptor.Interceptor

init

public void init()
Does nothing in this implementation.

Specified by:
init in interface com.opensymphony.xwork.interceptor.Interceptor

intercept

public java.lang.String intercept(com.opensymphony.xwork.ActionInvocation in)
                           throws java.lang.Exception
Calls JiveObjectLoader.loadObjects() if the action implements the JiveObjectLoader interface. If a return code of Action.SUCCESS is returned then the rest of the interceptorchain will be called. If no, execution is short circuited and the return code from the loadObjects() is returned.

Specified by:
intercept in interface com.opensymphony.xwork.interceptor.Interceptor
Parameters:
in - the action invocation -- the state of action execution.
Returns:
the response code from calling ActionInvocation.invoke() or some sort of error action code (depends on how the loadObjects() method is implemented.
Throws:
java.lang.Exception - if an unexpected error occurs while executing the interceptor.

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.