1 50 package org.apache.avalon.excalibur.naming; 51 52 import java.util.Hashtable ; 53 54 import javax.naming.Context ; 55 import javax.naming.Name ; 56 import javax.naming.NameParser ; 57 import javax.naming.NamingException ; 58 import javax.naming.spi.NamingManager ; 59 60 67 public class StandardNamespace 68 implements Namespace 69 { 70 private NameParser m_nameParser; 71 72 77 public StandardNamespace( final NameParser nameParser ) 78 { 79 m_nameParser = nameParser; 80 } 81 82 public NameParser getNameParser() 83 { 84 return m_nameParser; 85 } 86 87 public Object getStateToBind( final Object object, 88 final Name name, 89 final Context parent, 90 final Hashtable environment ) 91 throws NamingException 92 { 93 return NamingManager.getStateToBind( object, name, parent, environment ); 94 } 95 96 public Object getObjectInstance( final Object object, 97 final Name name, 98 final Context parent, 99 final Hashtable environment ) 100 throws Exception 101 { 102 return NamingManager.getObjectInstance( object, name, parent, environment ); 103 } 104 } 105 | Popular Tags |