org.jadetower.resolver.impl
Class DefaultResolver

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.jadetower.resolver.impl.DefaultResolver
All Implemented Interfaces:
org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled, Resolver

public class DefaultResolver
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements Resolver, org.apache.avalon.framework.configuration.Configurable

Defualt Resolver. Automatically configures the "class" and "jndi" ResolverFactories.


Field Summary
protected  java.util.HashMap m_factories
           
 
Fields inherited from interface org.jadetower.resolver.Resolver
ROLE
 
Constructor Summary
DefaultResolver()
           
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration configuration)
           
protected  void registerDefaults()
           
 void registerFactory(java.lang.String scheme, ResolverFactory factory)
           
 java.lang.Object resolve(java.lang.String uri)
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_factories

protected java.util.HashMap m_factories
Constructor Detail

DefaultResolver

public DefaultResolver()
Method Detail

configure

public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable

resolve

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

registerFactory

public void registerFactory(java.lang.String scheme,
                            ResolverFactory factory)

registerDefaults

protected void registerDefaults()


Copyright © 2003-2004 JadeTower. All Rights Reserved.