Class 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 Detail

      • ResourceLoaderImpl

        public ResourceLoaderImpl​(ClassLoader cl)
    • Method Detail

      • classForName

        public Class<?> classForName​(String name)
        Specified by:
        classForName in interface org.jboss.weld.resources.spi.ResourceLoader
      • getResource

        public URL getResource​(String name)
        Specified by:
        getResource in interface org.jboss.weld.resources.spi.ResourceLoader
      • getResources

        public Collection<URL> getResources​(String name)
        Specified by:
        getResources in interface org.jboss.weld.resources.spi.ResourceLoader
      • cleanup

        public void cleanup()
        Specified by:
        cleanup in interface org.jboss.weld.bootstrap.api.Service