org.jboss.weld.resources.spi.helpers
Class ForwardingResourceLoader
java.lang.Object
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
Methods inherited from interface org.jboss.weld.bootstrap.api.Service |
cleanup |
ForwardingResourceLoader
public ForwardingResourceLoader()
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.