1 package org.jboss.cache.transaction; 2 3 import javax.naming.Binding ; 4 import javax.naming.CompoundName ; 5 import javax.naming.Context ; 6 import javax.naming.ContextNotEmptyException ; 7 import javax.naming.Name ; 8 import javax.naming.NameAlreadyBoundException ; 9 import javax.naming.NameClassPair ; 10 import javax.naming.NameNotFoundException ; 11 import javax.naming.NameParser ; 12 import javax.naming.NamingEnumeration ; 13 import javax.naming.NamingException ; 14 import javax.naming.NotContextException ; 15 import javax.naming.OperationNotSupportedException ; 16 import javax.naming.directory.Attributes ; 17 import javax.naming.directory.DirContext ; 18 import javax.naming.directory.InvalidAttributesException ; 19 import java.util.HashMap ; 20 import java.util.Hashtable ; 21 22 27 public class DummyContext implements Context 28 { 29 30 HashMap bindings = new HashMap (); 31 32 45 public Object lookup(Name name) throws NamingException 46 { 47 return null; 48 } 49 50 58 public Object lookup(String name) throws NamingException 59 { 60 return bindings.get(name); 61 } 62 63 78 public void bind(Name name, Object obj) throws NamingException 79 { 80 } 81 82 92 public void bind(String name, Object obj) throws NamingException 93 { 94 bindings.put(name, obj); 95 } 96 97 117 public void rebind(Name name, Object obj) throws NamingException 118 { 119 } 120 121 130 public void rebind(String name, Object obj) throws NamingException 131 { 132 bindings.put(name, obj); 133 } 134 135 155 public void unbind(Name name) throws NamingException 156 { 157 } 158 159 167 public void unbind(String name) throws NamingException 168 { 169 bindings.remove(name); 170 } 171 172 187 public void rename(Name oldName, Name newName) throws NamingException 188 { 189 } 190 191 201 public void rename(String oldName, String newName) throws NamingException 202 { 203 } 204 205 222 public NamingEnumeration list(Name name) throws NamingException 223 { 224 return null; 225 } 226 227 238 public NamingEnumeration list(String name) throws NamingException 239 { 240 return null; 241 } 242 243 260 public NamingEnumeration listBindings(Name name) throws NamingException 261 { 262 return null; 263 } 264 265 276 public NamingEnumeration listBindings(String name) throws NamingException 277 { 278 return null; 279 } 280 281 312 public void destroySubcontext(Name name) throws NamingException 313 { 314 } 315 316 327 public void destroySubcontext(String name) throws NamingException 328 { 329 } 330 331 347 public Context createSubcontext(Name name) throws NamingException 348 { 349 return null; 350 } 351 352 363 public Context createSubcontext(String name) throws NamingException 364 { 365 return null; 366 } 367 368 380 public Object lookupLink(Name name) throws NamingException 381 { 382 return null; 383 } 384 385 395 public Object lookupLink(String name) throws NamingException 396 { 397 return null; 398 } 399 400 417 public NameParser getNameParser(Name name) throws NamingException 418 { 419 return null; 420 } 421 422 431 public NameParser getNameParser(String name) throws NamingException 432 { 433 return null; 434 } 435 436 467 public Name composeName(Name name, Name prefix) throws NamingException 468 { 469 return null; 470 } 471 472 482 public String composeName(String name, String prefix) 483 throws NamingException 484 { 485 return null; 486 } 487 488 501 public Object addToEnvironment(String propName, Object propVal) 502 throws NamingException 503 { 504 return null; 505 } 506 507 519 public Object removeFromEnvironment(String propName) 520 throws NamingException 521 { 522 return null; 523 } 524 525 539 public Hashtable getEnvironment() throws NamingException 540 { 541 return null; 542 } 543 544 555 public void close() throws NamingException 556 { 557 } 558 559 577 public String getNameInNamespace() throws NamingException 578 { 579 return null; 580 } 581 } 582 | Popular Tags |