net.sf.fikin.net.protocols.classpath
Class ClasspathStreamHandlerFactory

java.lang.Object
  extended by net.sf.fikin.net.protocols.classpath.ClasspathStreamHandlerFactory
All Implemented Interfaces:
java.net.URLStreamHandlerFactory

public class ClasspathStreamHandlerFactory
extends java.lang.Object
implements java.net.URLStreamHandlerFactory

Classloader protocol handler factory created on Oct 9, 2006

Since:
Version:
$Revision: 1.2 $
Author:
fiykov

Field Summary
static java.lang.ClassLoader primaryClassLoader
          primary classloader to use to load the resources
static java.lang.String PROTOCOL
          protocol name
 
Constructor Summary
ClasspathStreamHandlerFactory()
           
 
Method Summary
 java.net.URLStreamHandler createURLStreamHandler(java.lang.String protocol)
          create a "classpath" Handler if given protocol is "classpath"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROTOCOL

public static final java.lang.String PROTOCOL
protocol name

See Also:
Constant Field Values

primaryClassLoader

public static java.lang.ClassLoader primaryClassLoader
primary classloader to use to load the resources

by default it is null

by default order of classloaders used by Handler is:

Constructor Detail

ClasspathStreamHandlerFactory

public ClasspathStreamHandlerFactory()
Method Detail

createURLStreamHandler

public java.net.URLStreamHandler createURLStreamHandler(java.lang.String protocol)
create a "classpath" Handler if given protocol is "classpath"

Specified by:
createURLStreamHandler in interface java.net.URLStreamHandlerFactory


Copyright © 2003-2007 Nikolay Fiykov. All Rights Reserved.