1 22 package org.objectweb.petals.jbi.component.context; 23 24 import java.util.Hashtable ; 25 26 import javax.naming.Binding ; 27 import javax.naming.Context ; 28 import javax.naming.InitialContext ; 29 import javax.naming.Name ; 30 import javax.naming.NameClassPair ; 31 import javax.naming.NameParser ; 32 import javax.naming.NamingEnumeration ; 33 import javax.naming.NamingException ; 34 35 42 public class ComponentInitialContext extends InitialContext { 43 44 public ComponentInitialContext(Context usersContext) throws NamingException { 45 super(); 46 this.usersContext = usersContext; 47 } 48 49 protected Context usersContext; 50 51 public Object addToEnvironment(String propName, Object propVal) 52 throws NamingException { 53 return usersContext.addToEnvironment(propName, propVal); 54 } 55 56 public void bind(Name name, Object obj) throws NamingException { 57 usersContext.bind(name, obj); 58 } 59 60 public void bind(String name, Object obj) throws NamingException { 61 usersContext.bind(name, obj); 62 } 63 64 public void close() throws NamingException { 65 usersContext.close(); 66 } 67 68 public Name composeName(Name name, Name prefix) throws NamingException { 69 return usersContext.composeName(name, prefix); 70 } 71 72 public String composeName(String name, String prefix) 73 throws NamingException { 74 return usersContext.composeName(name, prefix); 75 } 76 77 public Context createSubcontext(Name name) throws NamingException { 78 return usersContext.createSubcontext(name); 79 } 80 81 public Context createSubcontext(String name) throws NamingException { 82 return usersContext.createSubcontext(name); 83 } 84 85 public void destroySubcontext(Name name) throws NamingException { 86 usersContext.destroySubcontext(name); 87 } 88 89 public void destroySubcontext(String name) throws NamingException { 90 usersContext.destroySubcontext(name); 91 } 92 93 public Hashtable <?, ?> getEnvironment() throws NamingException { 94 return usersContext.getEnvironment(); 95 } 96 97 public String getNameInNamespace() throws NamingException { 98 return usersContext.getNameInNamespace(); 99 } 100 101 public NameParser getNameParser(Name name) throws NamingException { 102 return usersContext.getNameParser(name); 103 } 104 105 public NameParser getNameParser(String name) throws NamingException { 106 return usersContext.getNameParser(name); 107 } 108 109 public NamingEnumeration <NameClassPair > list(Name name) 110 throws NamingException { 111 return usersContext.list(name); 112 } 113 114 public NamingEnumeration <NameClassPair > list(String name) 115 throws NamingException { 116 return usersContext.list(name); 117 } 118 119 public NamingEnumeration <Binding > listBindings(Name name) 120 throws NamingException { 121 return usersContext.listBindings(name); 122 } 123 124 public NamingEnumeration <Binding > listBindings(String name) 125 throws NamingException { 126 return usersContext.listBindings(name); 127 } 128 129 public Object lookup(Name name) throws NamingException { 130 return usersContext.lookup(name); 131 } 132 133 public Object lookup(String name) throws NamingException { 134 return usersContext.lookup(name); 135 } 136 137 public Object lookupLink(Name name) throws NamingException { 138 return usersContext.lookupLink(name); 139 } 140 141 public Object lookupLink(String name) throws NamingException { 142 return usersContext.lookupLink(name); 143 } 144 145 public void rebind(Name name, Object obj) throws NamingException { 146 usersContext.rebind(name, obj); 147 } 148 149 public void rebind(String name, Object obj) throws NamingException { 150 usersContext.rebind(name, obj); 151 } 152 153 public Object removeFromEnvironment(String propName) throws NamingException { 154 return usersContext.removeFromEnvironment(propName); 155 } 156 157 public void rename(Name oldName, Name newName) throws NamingException { 158 usersContext.rename(oldName, newName); 159 } 160 161 public void rename(String oldName, String newName) throws NamingException { 162 usersContext.rename(oldName, newName); 163 } 164 165 public void unbind(Name name) throws NamingException { 166 usersContext.unbind(name); 167 } 168 169 public void unbind(String name) throws NamingException { 170 usersContext.unbind(name); 171 } 172 173 } 174 | Popular Tags |