Class ForwardingResourceLoader
java.lang.Object
org.jboss.weld.resources.spi.helpers.ForwardingResourceLoader
- All Implemented Interfaces:
Service,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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?>classForName(String name) Creates a class from a given FQCNprotected abstract ResourceLoaderdelegate()Returns the delegatebooleangetResource(String name) Gets a resource as a URL by namegetResources(String name) Gets resources as URLs by nameinthashCode()toString()
-
Constructor Details
-
ForwardingResourceLoader
public ForwardingResourceLoader()
-
-
Method Details
-
delegate
Returns the delegate- Returns:
- delegate
-
classForName
Description copied from interface:ResourceLoaderCreates a class from a given FQCN- Specified by:
classForNamein interfaceResourceLoader- Parameters:
name- The name of the clsas- Returns:
- The class
-
getResource
Description copied from interface:ResourceLoaderGets a resource as a URL by name- Specified by:
getResourcein interfaceResourceLoader- Parameters:
name- The name of the resource- Returns:
- An URL to the resource
-
getResources
Description copied from interface:ResourceLoaderGets resources as URLs by name- Specified by:
getResourcesin interfaceResourceLoader- Parameters:
name- The name of the resource- Returns:
- references to the URLS
-
equals
-
toString
-
hashCode
public int hashCode()
-