站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 server API Documentation 英文版文档

Interceptor (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档


org.jboss.proxy
Class Interceptor

java.lang.Object
  extended byorg.jboss.proxy.Interceptor
All Implemented Interfaces:
Externalizable, Serializable
Direct Known Subclasses:
ClientMethodInterceptor, ClientMethodInterceptor, ExceptionInterceptor, GenericEJBInterceptor, InvokerAdaptorClientInterceptor, InvokerInterceptor, MessageEndpointInterceptor, SecurityInterceptor, TransactionInterceptor

public abstract class Interceptor
extends Object
implements Externalizable

The base class for all interceptors.

Version:
$Revision: 1.4 $
Author:
Marc Fleury
See Also:
Serialized Form

Field Summary
protected  Interceptor nextInterceptor
          The next interceptor in the chain.
 
Constructor Summary
Interceptor()
           
 
Method Summary
 Interceptor getNext()
           
abstract  Object invoke(Invocation mi)
           
 void readExternal(ObjectInput in)
          Reads the next interceptor.
 Interceptor setNext(Interceptor interceptor)
          Set the next interceptor in the chain.
 void writeExternal(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 nextInterceptor
The next interceptor in the chain.

Constructor Detail

Interceptor

public Interceptor()
Method Detail

setNext

public Interceptor setNext(Interceptor 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 getNext()

invoke

public abstract Object invoke(Invocation mi)
                       throws Throwable
Throws:
Throwable

writeExternal

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

Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

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

Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.