1 43 package org.exolab.jms.server.net; 44 45 import java.rmi.RemoteException ; 46 47 import javax.naming.Binding ; 48 import javax.naming.Context ; 49 import javax.naming.Name ; 50 import javax.naming.NameClassPair ; 51 import javax.naming.NameParser ; 52 import javax.naming.NamingException ; 53 54 import org.codehaus.spice.jndikit.NamingProvider; 55 import org.codehaus.spice.jndikit.rmi.RMINamingProvider; 56 57 import org.exolab.jms.net.orb.ORB; 58 import org.exolab.jms.net.orb.UnicastObject; 59 60 61 68 class RemoteNamingProvider 69 extends UnicastObject 70 implements NamingProvider { 71 72 75 private NamingProvider _provider; 76 77 78 86 public RemoteNamingProvider(NamingProvider provider, ORB orb, String uri) 87 throws RemoteException { 88 super(orb, uri); 89 _provider = provider; 90 } 91 92 public NameParser getNameParser() throws NamingException , Exception { 93 return _provider.getNameParser(); 94 } 95 96 public void bind(Name name, String className, Object object) 97 throws NamingException , Exception { 98 _provider.bind(name, className, object); 99 } 100 101 public void rebind(Name name, String className, Object object) 102 throws NamingException , Exception { 103 _provider.rebind(name, className, object); 104 } 105 106 public Context createSubcontext(Name name) 107 throws NamingException , Exception { 108 return _provider.createSubcontext(name); 109 } 110 111 public void destroySubcontext(Name name) 112 throws NamingException , Exception { 113 _provider.destroySubcontext(name); 114 } 115 116 public NameClassPair [] list(Name name) throws NamingException , Exception { 117 return _provider.list(name); 118 } 119 120 public Binding [] listBindings(Name name) 121 throws NamingException , Exception { 122 return _provider.listBindings(name); 123 } 124 125 public Object lookup(Name name) throws NamingException , Exception { 126 return _provider.lookup(name); 127 } 128 129 public void unbind(Name name) throws NamingException , Exception { 130 _provider.unbind(name); 131 } 132 133 } 134 | Popular Tags |