1 8 package org.codehaus.spice.jndikit; 9 10 import java.util.Hashtable ; 11 import javax.naming.Context ; 12 import javax.naming.Name ; 13 import javax.naming.NameParser ; 14 import javax.naming.NamingException ; 15 import javax.naming.spi.NamingManager ; 16 17 23 public class StandardNamespace 24 implements Namespace 25 { 26 private NameParser m_nameParser; 27 28 33 public StandardNamespace( final NameParser nameParser ) 34 { 35 m_nameParser = nameParser; 36 } 37 38 public NameParser getNameParser() 39 { 40 return m_nameParser; 41 } 42 43 public Object getStateToBind( final Object object, 44 final Name name, 45 final Context parent, 46 final Hashtable environment ) 47 throws NamingException 48 { 49 return NamingManager.getStateToBind( object, name, parent, environment ); 50 } 51 52 public Object getObjectInstance( final Object object, 53 final Name name, 54 final Context parent, 55 final Hashtable environment ) 56 throws Exception 57 { 58 return NamingManager.getObjectInstance( object, name, parent, environment ); 59 } 60 } 61 | Popular Tags |