Package org.jboss.weld.resources.spi
Interface ResourceLoader
- All Superinterfaces:
Service
- All Known Implementing Classes:
ForwardingResourceLoader
Resource loading/class creation services for Weld. By default an implementation which uses the Thread Context ClassLoader if
available, otherwise the classloading of the implementation is used. An alternative implementation that uses a predefined
classloader is available for multi-modular environments.
The
ResourceLoader is a per-BeanManager service. Single-module deployments can use the default implementation, but
applications that consist of multiple modules must use an implementation that is aware of the module classloader.- Author:
- Pete Muir
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionClass<?>classForName(String name) Creates a class from a given FQCNgetResource(String name) Gets a resource as a URL by namegetResources(String name) Gets resources as URLs by name
-
Field Details
-
PROPERTY_NAME
Name of the resource loader
-
-
Method Details
-
classForName
Creates a class from a given FQCN- Parameters:
name- The name of the clsas- Returns:
- The class
-
getResource
Gets a resource as a URL by name- Parameters:
name- The name of the resource- Returns:
- An URL to the resource
-
getResources
Gets resources as URLs by name- Parameters:
name- The name of the resource- Returns:
- references to the URLS
-