org.jboss.proxy
Class Interceptor

java.lang.Object
  extended byorg.jboss.proxy.Interceptor
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable
Direct Known Subclasses:
ClientEncryptionInterceptor (src) , ClientMethodInterceptor (src) , ClientMethodInterceptor (src) , ClientMethodInterceptorHA (src) , ClientTCLInterceptor (src) , ExceptionInterceptor (src) , ExplicitFailoverClientInterceptor (src) , GenericEJBInterceptor (src) , InvokerAdaptorClientInterceptor (src) , InvokerInterceptor (src) , InvokerInterceptor (src) , MessageEndpointInterceptor (src) , RetryInterceptor (src) , SecurityInterceptor (src) , StatementInterceptor (src) , TransactionInterceptor (src)

public abstract class Interceptor
extends java.lang.Object
implements java.io.Externalizable

The base class for all interceptors.

See Also:
Serialized Form

Field Summary
protected  Interceptor (src) nextInterceptor
          The next interceptor in the chain.
 
Constructor Summary
Interceptor()
           
 
Method Summary
 Interceptor (src) getNext()
           
abstract  java.lang.Object invoke(Invocation (src)  mi)
           
 void readExternal(java.io.ObjectInput in)
          Reads the next interceptor.
 Interceptor (src) setNext(Interceptor (src)  interceptor)
          Set the next interceptor in the chain.
 void writeExternal(java.io.ObjectOutput out)
          Writes the next interceptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nextInterceptor

protected Interceptor (src)  nextInterceptor
The next interceptor in the chain.

Constructor Detail

Interceptor

public Interceptor()
Method Detail

setNext

public Interceptor (src)  setNext(Interceptor (src)  interceptor)
Set the next interceptor in the chain.

String together the interceptors We return the passed interceptor to allow for interceptor1.setNext(interceptor2).setNext(interceptor3)... constructs.


getNext

public Interceptor (src)  getNext()

invoke

public abstract java.lang.Object invoke(Invocation (src)  mi)
                                 throws java.lang.Throwable
Throws:
java.lang.Throwable

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Writes the next interceptor.

Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Reads the next interceptor.

Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException