1 45 package org.exolab.jms.net.orb; 46 47 import java.rmi.RemoteException ; 48 import java.util.HashMap ; 49 import java.util.Map ; 50 51 import org.exolab.jms.net.connector.Authenticator; 52 53 54 60 public final class ORBFactory { 61 62 65 private ORBFactory() { 66 } 67 68 74 public static ORB createORB() throws RemoteException { 75 return new DefaultORB(); 76 } 77 78 85 public static ORB createORB(String defaultURI) throws RemoteException { 86 Map properties = new HashMap (); 87 properties.put(ORB.PROVIDER_URI, defaultURI); 88 return createORB(properties); 89 } 90 91 98 public static ORB createORB(Map properties) throws RemoteException { 99 return new DefaultORB(properties); 100 } 101 102 110 public static ORB createORB(Authenticator authenticator, String defaultURI) 111 throws RemoteException { 112 Map properties = new HashMap (); 113 properties.put(ORB.PROVIDER_URI, defaultURI); 114 return createORB(authenticator, properties); 115 } 116 117 125 public static ORB createORB(Authenticator authenticator, Map properties) 126 throws RemoteException { 127 ORB orb = new DefaultORB(authenticator, properties); 128 return orb; 129 } 130 131 } 132 | Popular Tags |