org.jboss.weld.extensions.resourceLoader
Class DelegatingResourceLoader

java.lang.Object
  extended by org.jboss.weld.extensions.resourceLoader.DelegatingResourceLoader
All Implemented Interfaces:
ResourceLoader, Sortable

Deprecated. this resource loader can easily leak between application instances

@Deprecated
public class DelegatingResourceLoader
extends Object
implements ResourceLoader

Resource loader that delegates to a static list of resource loaders.

Author:
Stuart Douglas

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.weld.extensions.util.Sortable
Sortable.Comparator
 
Constructor Summary
DelegatingResourceLoader()
          Deprecated.  
 
Method Summary
static void addResourceLoader(ResourceLoader loader)
          Deprecated.  
 int getPrecedence()
          Deprecated. An integer precedence value that indicates how favorable the implementation considers itself amongst alternatives.
 URL getResource(String name)
          Deprecated.  Get the URL for a resource.
 InputStream getResourceAsStream(String name)
          Deprecated.  Get the InputStream for a resource.
 Set<URL> getResources(String name)
          Deprecated.  Get the URLs known to all resource loaders for a given name.
 Collection<InputStream> getResourcesAsStream(String name)
          Deprecated.  Get the input streams known to all resource loaders for a given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingResourceLoader

public DelegatingResourceLoader()
Deprecated. 
Method Detail

addResourceLoader

public static void addResourceLoader(ResourceLoader loader)
Deprecated. 

getResource

public URL getResource(String name)
Deprecated. 
Description copied from interface: ResourceLoader

Get the URL for a resource.

The resource loaders are searched in precedence order, stopping when a resource is found.

Specified by:
getResource in interface ResourceLoader
Parameters:
name - the resource to get the URL for
Returns:
the URL, or null if the resource does not exist

getResourceAsStream

public InputStream getResourceAsStream(String name)
Deprecated. 
Description copied from interface: ResourceLoader

Get the InputStream for a resource.

The resource loaders are searched in precedence order, stopping when a resource is found.

Specified by:
getResourceAsStream in interface ResourceLoader
Parameters:
name - the resource to get the InputStream for
Returns:
the InputStream, or null if the resource does not exist

getResources

public Set<URL> getResources(String name)
Deprecated. 
Description copied from interface: ResourceLoader

Get the URLs known to all resource loaders for a given name.

Specified by:
getResources in interface ResourceLoader
Parameters:
name - the resource to get the URLs for
Returns:
the URLs, or an empty collection if no resources are found

getResourcesAsStream

public Collection<InputStream> getResourcesAsStream(String name)
Deprecated. 
Description copied from interface: ResourceLoader

Get the input streams known to all resource loaders for a given name.

Specified by:
getResourcesAsStream in interface ResourceLoader
Parameters:
name - name the resource to get the input streams for
Returns:
the input streams, or an empty collection if no resources are found

getPrecedence

public int getPrecedence()
Deprecated. 
Description copied from interface: Sortable
An integer precedence value that indicates how favorable the implementation considers itself amongst alternatives. A higher value is a higher precedence. If two implementations have the save precedence, the order is undetermined.

Specified by:
getPrecedence in interface Sortable


Copyright © 2008-2010 Seam Framework. All Rights Reserved.