rt/vm/src/main/java/org/apidesign/vm4brwsr/Bck2Brwsr.java
changeset 1365 4393b7db103b
parent 1359 5d93ca1561c3
child 1413 b597de629d33
     1.1 --- a/rt/vm/src/main/java/org/apidesign/vm4brwsr/Bck2Brwsr.java	Wed Oct 09 22:02:34 2013 +0200
     1.2 +++ b/rt/vm/src/main/java/org/apidesign/vm4brwsr/Bck2Brwsr.java	Thu Oct 10 13:59:29 2013 +0200
     1.3 @@ -151,7 +151,21 @@
     1.4       * @since 0.5
     1.5       */
     1.6      public Bck2Brwsr resources(final ClassLoader loader) {
     1.7 -        return resources(new LdrRsrcs(loader, false));
     1.8 +        return resources(loader, false);
     1.9 +    }
    1.10 +
    1.11 +    /** A way to change the provider of additional resources (classes) for the 
    1.12 +     * compiler by specifying classloader to use for loading them.
    1.13 +     * 
    1.14 +     * @param loader class loader to load the resources from
    1.15 +     * @param ignoreBootClassPath <code>true</code> if classes loaded
    1.16 +     *    from <code>rt.jar</code> 
    1.17 +     * @return new instance of the compiler with all values being the same, just 
    1.18 +     *   different resources provider
    1.19 +     * @since 0.9
    1.20 +     */
    1.21 +    public Bck2Brwsr resources(final ClassLoader loader, boolean ignoreBootClassPath) {
    1.22 +        return resources(new LdrRsrcs(loader, ignoreBootClassPath));
    1.23      }
    1.24      
    1.25      /** Generates virtual machine based on previous configuration of the