org.backsource.utils.xml
Class ResolverContext

java.lang.Object
  extended byorg.backsource.utils.xml.ResolverContext

public class ResolverContext
extends java.lang.Object

Resolver context is a flexible static class to allow setting of EntityResolver and URIResolver when using all the static methods in these utility classes.

Version:
$Revision: 1.1.1.1 $
Author:
See Also:
ClassContextLocal, InheritableClassContextLocal

Method Summary
static Resolver get()
          Get a Resolver.
static void set(Resolver factory)
          Set a Resolver available globaly in the JVM.
static void setClassLocal(Resolver factory)
          Set an Resolver only available in the context classloader it is set.
static void setInheritClassLocal(Resolver factory)
          Set an Resolver available in the current context class loader it is set and in all its children classloaders.
static void setThreadLocal(Resolver factory)
          Set a Resolver available in the current thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static Resolver get()

Get a Resolver.

Does a bottom up search. The order is: threadLocal, classLocal, inheritableClassLocal and last the static global instance of URIFactory.


set

public static void set(Resolver factory)
Set a Resolver available globaly in the JVM.


setInheritClassLocal

public static void setInheritClassLocal(Resolver factory)
Set an Resolver available in the current context class loader it is set and in all its children classloaders.


setClassLocal

public static void setClassLocal(Resolver factory)
Set an Resolver only available in the context classloader it is set.


setThreadLocal

public static void setThreadLocal(Resolver factory)
Set a Resolver available in the current thread.



Copyright © 2000-2004 Backsource. All Rights Reserved.