Package org.jboss.weld.resources
Class WeldClassLoaderResourceLoader
java.lang.Object
org.jboss.weld.resources.AbstractClassLoaderResourceLoader
org.jboss.weld.resources.WeldClassLoaderResourceLoader
- All Implemented Interfaces:
org.jboss.weld.bootstrap.api.Service,org.jboss.weld.resources.spi.ResourceLoader
- Direct Known Subclasses:
DefaultResourceLoader
ResourceLoader implementation that uses the classloader that loaded this class to load other resources. This is not
very useful except for cases where we need to decide whether optional parts of weld-core should be registered or not.
These optional parts depend on certain artifacts that may not be available (e.g. servlet API). We cannot use the
DefaultResourceLoader for the decision making since in a modular environment the required artifact may be available
to the application (loadable via TCCL) but may not be available to Weld. This class is helpful for detecting such situations.- Author:
- Jozef Hartinger
-
Field Summary
FieldsFields inherited from interface org.jboss.weld.resources.spi.ResourceLoader
PROPERTY_NAME -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jboss.weld.resources.AbstractClassLoaderResourceLoader
classForName, getResource, getResources
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
WeldClassLoaderResourceLoader
protected WeldClassLoaderResourceLoader()
-
-
Method Details
-
classLoader
- Specified by:
classLoaderin classAbstractClassLoaderResourceLoader
-
cleanup
public void cleanup()
-