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

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


org.jboss.invocation
Class ByValueInvokerInterceptor

java.lang.Object
  extended byorg.jboss.proxy.Interceptor
      extended byorg.jboss.invocation.InvokerInterceptor
          extended byorg.jboss.invocation.ByValueInvokerInterceptor
All Implemented Interfaces:
Externalizable, Serializable

public class ByValueInvokerInterceptor
extends InvokerInterceptor
implements Externalizable

An InvokerInterceptor that does not optimize remote invocations.

This interceptor implements spec compliant behaviour.

Version:
$Revision: 1.5 $
Author:
Adrian Brock
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.invocation.InvokerInterceptor
localInvoker, remoteInvoker
 
Fields inherited from class org.jboss.proxy.Interceptor
nextInterceptor
 
Constructor Summary
ByValueInvokerInterceptor()
           
 
Method Summary
 Object invoke(Invocation invocation)
          Invoke using the invoker for remote invocations
 boolean isLocal(Invocation invocation)
          Are you local?
 void readExternal(ObjectInput in)
          Un-externalize this instance.
 void writeExternal(ObjectOutput out)
          Externalize this instance.
 
Methods inherited from class org.jboss.invocation.InvokerInterceptor
getLocal, invokeInvoker, invokeLocal, invokeMarshalled, isLocal, setLocal
 
Methods inherited from class org.jboss.proxy.Interceptor
getNext, setNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByValueInvokerInterceptor

public ByValueInvokerInterceptor()
Method Detail

isLocal

public boolean isLocal(Invocation invocation)
Are you local?

Overrides:
isLocal in class InvokerInterceptor
Parameters:
invocation - the invocation
Returns:
true when the target is local

invoke

public Object invoke(Invocation invocation)
              throws Exception
Invoke using the invoker for remote invocations

Overrides:
invoke in class InvokerInterceptor
Throws:
Exception

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Externalize this instance.

Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class InvokerInterceptor
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Un-externalize this instance.

Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class InvokerInterceptor
Throws:
IOException
ClassNotFoundException


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