consciouscode.util.resource
Class ClassLoaderResourceTree

java.lang.Object
  extended by consciouscode.util.resource.ClassLoaderResourceTree
All Implemented Interfaces:
ResourceTree

Deprecated. This class is deprecated because it cannot support all features of ResourceTree interface. Specifically, one cannot enumerate resources within a ClassLoader, or identify directories.

@Deprecated
public class ClassLoaderResourceTree
extends Object
implements ResourceTree

A ResourceTree that reads resources from a ClassLoader.


Constructor Summary
ClassLoaderResourceTree(String module, ClassLoader loader)
          Deprecated.  
ClassLoaderResourceTree(String module, ClassLoader loader, ResourceTreeProvider provider)
          Deprecated.  
 
Method Summary
 Resource getResource(String path)
          Deprecated. Returns information about a resource file.
 ResourceTreeProvider getResourceTreeProvider()
          Deprecated. Gets the provider of this resource tree.
 URL getResourceUrl(String path)
          Deprecated. Returns a URL to a resource file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassLoaderResourceTree

public ClassLoaderResourceTree(String module,
                               ClassLoader loader)
Deprecated. 
Parameters:
module - is the name of the module this layer is configuring. It must not be null or empty.
loader - must not be null.

ClassLoaderResourceTree

public ClassLoaderResourceTree(String module,
                               ClassLoader loader,
                               ResourceTreeProvider provider)
Deprecated. 
Parameters:
module - is the name of the module this layer is configuring. It must not be null or empty.
loader - must not be null.
Method Detail

getResource

public Resource getResource(String path)
Deprecated. 
Description copied from interface: ResourceTree
Returns information about a resource file.

Specified by:
getResource in interface ResourceTree
Parameters:
path - identifies the desired resource.
Returns:
null if no resource exists at the given path.

getResourceUrl

public URL getResourceUrl(String path)
Deprecated. 
Description copied from interface: ResourceTree
Returns a URL to a resource file.

Specified by:
getResourceUrl in interface ResourceTree
Returns:
null if no resource exists at the given path.

getResourceTreeProvider

public ResourceTreeProvider getResourceTreeProvider()
Deprecated. 
Description copied from interface: ResourceTree
Gets the provider of this resource tree.

Specified by:
getResourceTreeProvider in interface ResourceTree
Returns:
may be null.


Copyright © 2001–2012 Todd V. Jonker. All Rights Reserved.