View Javadoc
1   package com.github.searls.jasmine.thirdpartylibs;
2   
3   import java.io.InputStream;
4   
5   public class ClassPathResourceHandler extends AbstractThirdPartyLibsResourceHandler {
6   
7     private final ClassLoader projectClassLoader;
8   
9     public ClassPathResourceHandler(ClassLoader projectClassLoader) {
10      this.projectClassLoader = projectClassLoader;
11    }
12  
13    @Override
14    protected InputStream findResource(String resourcePath) {
15      return projectClassLoader.getResourceAsStream(resourcePath);
16    }
17  }