geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r356451 - in /geronimo/trunk/sandbox/freeorb/geronimo-orb/src/test/java/org/apache/geronimo/corba/test: ClientInterceptor.java ClientInterceptorInitializer.java
Date Tue, 13 Dec 2005 02:19:11 GMT
Author: adc
Date: Mon Dec 12 18:19:06 2005
New Revision: 356451

URL: http://svn.apache.org/viewcvs?rev=356451&view=rev
Log:
PR: GERONIMO-1242
Submitted by: Kresten Krab Thorup

Added:
    geronimo/trunk/sandbox/freeorb/geronimo-orb/src/test/java/org/apache/geronimo/corba/test/ClientInterceptor.java
    geronimo/trunk/sandbox/freeorb/geronimo-orb/src/test/java/org/apache/geronimo/corba/test/ClientInterceptorInitializer.java

Added: geronimo/trunk/sandbox/freeorb/geronimo-orb/src/test/java/org/apache/geronimo/corba/test/ClientInterceptor.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/freeorb/geronimo-orb/src/test/java/org/apache/geronimo/corba/test/ClientInterceptor.java?rev=356451&view=auto
==============================================================================
--- geronimo/trunk/sandbox/freeorb/geronimo-orb/src/test/java/org/apache/geronimo/corba/test/ClientInterceptor.java
(added)
+++ geronimo/trunk/sandbox/freeorb/geronimo-orb/src/test/java/org/apache/geronimo/corba/test/ClientInterceptor.java
Mon Dec 12 18:19:06 2005
@@ -0,0 +1,46 @@
+package org.apache.geronimo.corba.test;
+
+import org.omg.CORBA.LocalObject;
+import org.omg.PortableInterceptor.ClientRequestInfo;
+import org.omg.PortableInterceptor.ClientRequestInterceptor;
+import org.omg.PortableInterceptor.ForwardRequest;
+
+public class ClientInterceptor extends LocalObject implements
+		ClientRequestInterceptor {
+
+	public void send_request(ClientRequestInfo ri) throws ForwardRequest {
+		
+		System.out.println("send_request: "+ri.operation());
+
+	}
+
+	public void send_poll(ClientRequestInfo ri) {
+		System.out.println("send_poll: "+ri.operation());
+
+	}
+
+	public void receive_reply(ClientRequestInfo ri) {
+		System.out.println("receive_reply: "+ri.operation());
+
+	}
+
+	public void receive_exception(ClientRequestInfo ri) throws ForwardRequest {
+		System.out.println("receive_exception: "+ri.operation());
+
+	}
+
+	public void receive_other(ClientRequestInfo ri) throws ForwardRequest {
+		System.out.println("receive_other: "+ri.operation());
+
+	}
+
+	public String name() {
+		return this.getClass().getName();
+	}
+
+	public void destroy() {
+		// TODO Auto-generated method stub
+
+	}
+
+}

Added: geronimo/trunk/sandbox/freeorb/geronimo-orb/src/test/java/org/apache/geronimo/corba/test/ClientInterceptorInitializer.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/freeorb/geronimo-orb/src/test/java/org/apache/geronimo/corba/test/ClientInterceptorInitializer.java?rev=356451&view=auto
==============================================================================
--- geronimo/trunk/sandbox/freeorb/geronimo-orb/src/test/java/org/apache/geronimo/corba/test/ClientInterceptorInitializer.java
(added)
+++ geronimo/trunk/sandbox/freeorb/geronimo-orb/src/test/java/org/apache/geronimo/corba/test/ClientInterceptorInitializer.java
Mon Dec 12 18:19:06 2005
@@ -0,0 +1,29 @@
+package org.apache.geronimo.corba.test;
+
+import org.omg.CORBA.LocalObject;
+import org.omg.PortableInterceptor.ClientRequestInterceptor;
+import org.omg.PortableInterceptor.ORBInitInfo;
+import org.omg.PortableInterceptor.ORBInitializer;
+import org.omg.PortableInterceptor.ORBInitInfoPackage.DuplicateName;
+
+public class ClientInterceptorInitializer extends LocalObject implements
+		ORBInitializer {
+
+	public void pre_init(ORBInitInfo info) {
+		
+		ClientRequestInterceptor ci = new ClientInterceptor();
+
+		try {
+			info.add_client_request_interceptor(ci);
+		} catch (DuplicateName e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+		}
+	}
+
+	public void post_init(ORBInitInfo info) {
+		// TODO Auto-generated method stub
+
+	}
+
+}



Mime
View raw message