Package org.glassfish.weld
Class ResourceLoaderImpl
- java.lang.Object
-
- org.glassfish.weld.ResourceLoaderImpl
-
- All Implemented Interfaces:
org.jboss.weld.bootstrap.api.Service
,org.jboss.weld.resources.spi.ResourceLoader
@Service public class ResourceLoaderImpl extends Object implements org.jboss.weld.resources.spi.ResourceLoader
This is implementation of ResourceLoader interface. One instance of this class is created for each bean deployment archive. This class ensures that resource is loaded using class loader for that bean deployment archive. This was needed to fix issue : http://java.net/jira/browse/GLASSFISH-17396- Author:
- kshitiz
-
-
Constructor Summary
Constructors Constructor Description ResourceLoaderImpl(ClassLoader cl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>
classForName(String name)
void
cleanup()
URL
getResource(String name)
Collection<URL>
getResources(String name)
-
-
-
Constructor Detail
-
ResourceLoaderImpl
public ResourceLoaderImpl(ClassLoader cl)
-
-
Method Detail
-
classForName
public Class<?> classForName(String name)
- Specified by:
classForName
in interfaceorg.jboss.weld.resources.spi.ResourceLoader
-
getResource
public URL getResource(String name)
- Specified by:
getResource
in interfaceorg.jboss.weld.resources.spi.ResourceLoader
-
getResources
public Collection<URL> getResources(String name)
- Specified by:
getResources
in interfaceorg.jboss.weld.resources.spi.ResourceLoader
-
cleanup
public void cleanup()
- Specified by:
cleanup
in interfaceorg.jboss.weld.bootstrap.api.Service
-
-