1 28 package org.objectweb.carol.jtests.conform.interceptor.jrmp; 29 30 import org.objectweb.carol.rmi.jrmp.interceptor.JInitInfo; 31 import org.objectweb.carol.rmi.jrmp.interceptor.JInitializer; 32 33 38 public class Initializer implements JInitializer { 39 40 44 public void pre_init(JInitInfo info) { 45 try { 46 info.add_client_request_interceptor(new DummyClientInterceptor("client interceptor")); 47 info.add_server_request_interceptor(new DummyServerInterceptor("server interceptor")); 48 } catch (Exception e) { 49 System.out.println("could'nt instantiate Interceptor" + e); 50 e.printStackTrace(); 51 } 52 } 53 54 58 public void post_init(JInitInfo info) { 59 } 61 62 } | Popular Tags |