org.jadetower.resolver.impl
Class JndiResolver

java.lang.Object
  extended byorg.jadetower.resolver.impl.JndiResolver
All Implemented Interfaces:
org.apache.avalon.framework.parameters.Parameterizable, ResolverFactory

public class JndiResolver
extends java.lang.Object
implements ResolverFactory, org.apache.avalon.framework.parameters.Parameterizable

resolves the JNDI scheme. If not configured, will attempt to load properties via a file "jndi.properties" on the classpath.


Field Summary
protected  javax.naming.InitialContext m_context
           
static java.lang.String SCHEME
           
 
Constructor Summary
JndiResolver()
           
JndiResolver(java.util.Properties env)
           
 
Method Summary
protected  void initContext(java.util.Properties env)
           
 void parameterize(org.apache.avalon.framework.parameters.Parameters parameters)
           
 java.lang.Object resolve(java.lang.String uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCHEME

public static final java.lang.String SCHEME
See Also:
Constant Field Values

m_context

protected javax.naming.InitialContext m_context
Constructor Detail

JndiResolver

public JndiResolver()

JndiResolver

public JndiResolver(java.util.Properties env)
             throws java.lang.InstantiationException
Method Detail

parameterize

public void parameterize(org.apache.avalon.framework.parameters.Parameters parameters)
                  throws org.apache.avalon.framework.parameters.ParameterException
Specified by:
parameterize in interface org.apache.avalon.framework.parameters.Parameterizable
Throws:
org.apache.avalon.framework.parameters.ParameterException

resolve

public java.lang.Object resolve(java.lang.String uri)
                         throws java.lang.Exception
Specified by:
resolve in interface ResolverFactory
Throws:
java.lang.Exception

initContext

protected void initContext(java.util.Properties env)
                    throws javax.naming.NamingException
Throws:
javax.naming.NamingException


Copyright © 2003-2004 JadeTower. All Rights Reserved.