org.jboss.weld.resources.spi.helpers
Class ForwardingResourceLoader

java.lang.Object
  extended by org.jboss.weld.resources.spi.helpers.ForwardingResourceLoader
All Implemented Interfaces:
Service, ResourceLoader

public abstract class ForwardingResourceLoader
extends Object
implements ResourceLoader

An implementation of ResourceLoader which forwards all its method calls to another ResourceLoader}. Subclasses should override one or more methods to modify the behavior of the backing ResourceLoader as desired per the decorator pattern.

Author:
Pete Muir

Field Summary
 
Fields inherited from interface org.jboss.weld.resources.spi.ResourceLoader
PROPERTY_NAME
 
Constructor Summary
ForwardingResourceLoader()
           
 
Method Summary
 Class<?> classForName(String name)
          Creates a class from a given FQCN
protected abstract  ResourceLoader delegate()
           
 boolean equals(Object obj)
           
 URL getResource(String name)
          Gets a resource as a URL by name
 Collection<URL> getResources(String name)
          Gets resources as URLs by name
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.weld.bootstrap.api.Service
cleanup
 

Constructor Detail

ForwardingResourceLoader

public ForwardingResourceLoader()
Method Detail

delegate

protected abstract ResourceLoader delegate()

classForName

public Class<?> classForName(String name)
Description copied from interface: ResourceLoader
Creates a class from a given FQCN

Specified by:
classForName in interface ResourceLoader
Parameters:
name - The name of the clsas
Returns:
The class

getResource

public URL getResource(String name)
Description copied from interface: ResourceLoader
Gets a resource as a URL by name

Specified by:
getResource in interface ResourceLoader
Parameters:
name - The name of the resource
Returns:
An URL to the resource

getResources

public Collection<URL> getResources(String name)
Description copied from interface: ResourceLoader
Gets resources as URLs by name

Specified by:
getResources in interface ResourceLoader
Parameters:
name - The name of the resource
Returns:
references to the URLS

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2013 Seam Framework. All Rights Reserved.