org.backsource.utils.resource
Class URIFactoryContext

java.lang.Object
  extended byorg.backsource.utils.resource.URIFactoryContext

public class URIFactoryContext
extends java.lang.Object

A dynamic singleton used by URI to lookup an URIFactory.

See URIFactory for more information.

Version:
$Revision: 1.1.1.1 $
Author:
Peter Antman

Method Summary
static URIFactory get()
          Get an URIFactory.
static void set(URIFactory factory)
          Set a URIFactory available globaly in the JVM.
static void setClassLocal(URIFactory factory)
          Set an URIFactory only available in the context classloader it is set.
static void setInheritClassLocal(URIFactory factory)
          Set an URIFactory available in the current context class loader it is set and in all its children classloaders.
static void setThreadLocal(URIFactory factory)
          Set a URIFactory 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 URIFactory get()

Get an URIFactory.

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


set

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


setInheritClassLocal

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


setClassLocal

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


setThreadLocal

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



Copyright © 2000-2004 Backsource. All Rights Reserved.