org.jboss.invocation
Class ByValueInvokerInterceptor

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

public class ByValueInvokerInterceptor
extends InvokerInterceptor (src)
implements java.io.Externalizable

An InvokerInterceptor that does not optimize remote invocations.

This interceptor implements spec compliant behaviour.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.invocation.InvokerInterceptor (src)
invokerProxyHA, localInvoker, remoteInvoker
 
Fields inherited from class org.jboss.proxy.Interceptor (src)
nextInterceptor
 
Constructor Summary
ByValueInvokerInterceptor()
           
 
Method Summary
 java.lang.Object invoke(Invocation (src)  invocation)
          Invoke using the invoker for remote invocations
 boolean isLocal(Invocation (src)  invocation)
          Are you local?
 void readExternal(java.io.ObjectInput in)
          Un-externalize this instance.
 void writeExternal(java.io.ObjectOutput out)
          Externalize this instance.
 
Methods inherited from class org.jboss.invocation.InvokerInterceptor (src)
getLocal, hasLocalTarget, invokeInvoker, invokeLocal, invokeMarshalled, isClustered, isLocal, setLocal
 
Methods inherited from class org.jboss.proxy.Interceptor (src)
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 (src)  invocation)
Are you local?

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

invoke

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

Overrides:
invoke in class InvokerInterceptor (src)
Throws:
java.lang.Exception

writeExternal

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

Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class InvokerInterceptor (src)
Throws:
java.io.IOException

readExternal

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

Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class InvokerInterceptor (src)
Throws:
java.io.IOException
java.lang.ClassNotFoundException