chirino 2003/10/30 22:59:47
Modified: modules/core/src/java/org/apache/geronimo/remoting
IntraVMRoutingInterceptor.java
Log:
added the setAllwaysMarshall method.
Revision Changes Path
1.5 +10 -2
incubator-geronimo/modules/core/src/java/org/apache/geronimo/remoting/IntraVMRoutingInterceptor.java
Index: IntraVMRoutingInterceptor.java
===================================================================
RCS file:
/home/cvs/incubator-geronimo/modules/core/src/java/org/apache/geronimo/remoting/IntraVMRoutingInterceptor.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- IntraVMRoutingInterceptor.java 8 Sep 2003 04:33:54 -0000 1.4
+++ IntraVMRoutingInterceptor.java 31 Oct 2003 06:59:46 -0000 1.5
@@ -71,6 +71,7 @@
public class IntraVMRoutingInterceptor implements Interceptor,
Externalizable {
Long deMarshalingInterceptorID;
+ boolean allwaysMarshall=false;
transient Interceptor next;
/**
@@ -93,7 +94,7 @@
// Did we deserialize with the same app classloader that
// the target belongs to??
- if (InvocationSupport.isAncestor(parent, child)) {
+ if (InvocationSupport.isAncestor(parent, child) && !allwaysMarshall)
{
// Then we can avoid demarshalling/marshalling
next = deMarshalingInterceptor.getNext();
} else {
@@ -153,4 +154,11 @@
this.deMarshalingInterceptorID = deMarshalingInterceptorID;
}
+ public boolean getAllwaysMarshall() {
+ return allwaysMarshall;
+ }
+
+ public void setAllwaysMarshall(boolean value) {
+ allwaysMarshall=value;
+ }
}