1 28 package org.objectweb.carol.rmi.jrmp.server; 29 30 import java.io.ObjectOutput ; 32 import java.rmi.server.RMIClientSocketFactory ; 33 import java.rmi.server.RMIServerSocketFactory ; 34 import java.rmi.server.RemoteRef ; 35 36 import org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInterceptor; 37 import org.objectweb.carol.rmi.jrmp.interceptor.JInterceptorStore; 38 import org.objectweb.carol.rmi.jrmp.interceptor.JServerRequestInterceptor; 39 40 import sun.rmi.transport.LiveRef; 41 42 49 public class JUnicastServerRefSf extends JUnicastServerRef { 50 51 54 public JUnicastServerRefSf() { 55 } 56 57 63 public JUnicastServerRefSf(LiveRef ref, JServerRequestInterceptor[] sis, JClientRequestInterceptor[] cis) { 64 super(ref, sis, cis); 65 } 66 67 75 public JUnicastServerRefSf(int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf, 76 JServerRequestInterceptor[] sis, JClientRequestInterceptor[] cis) { 77 super(new LiveRef(port, csf, ssf), sis, cis); 78 } 79 80 84 public String getRefClass(ObjectOutput out) { 85 super.getRefClass(out); 86 return "org.objectweb.carol.rmi.jrmp.server.JUnicastServerRefSf"; 87 } 88 89 93 protected RemoteRef getClientRef() { 94 return new JUnicastRefSf(ref, cis, JInterceptorStore.getJRMPInitializers(), -2); 95 } 96 } | Popular Tags |