|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceLoader
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.
| Field Summary | |
|---|---|
static String |
PROPERTY_NAME
|
| Method Summary | |
|---|---|
Class<?> |
classForName(String name)
Creates a class from a given FQCN |
URL |
getResource(String name)
Gets a resource as a URL by name |
Collection<URL> |
getResources(String name)
Gets resources as URLs by name |
| Methods inherited from interface org.jboss.weld.bootstrap.api.Service |
|---|
cleanup |
| Field Detail |
|---|
static final String PROPERTY_NAME
| Method Detail |
|---|
Class<?> classForName(String name)
name - The name of the clsas
URL getResource(String name)
name - The name of the resource
Collection<URL> getResources(String name)
name - The name of the resource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||