Java 类org.mozilla.javascript.commonjs.module.provider.StrongCachingModuleScriptProvider 实例源码

项目:whackpad    文件:RequireTest.java   
private Require getSandboxedRequire(Context cx, Scriptable scope, boolean sandboxed)
        throws URISyntaxException
{
    return new Require(cx, cx.initStandardObjects(), 
            new StrongCachingModuleScriptProvider(
                    new UrlModuleSourceProvider(Collections.singleton(
                            getDirectory()), null)), null, null, true);
}
项目:whackpad    文件:ComplianceTest.java   
private static Require createRequire(File dir, Context cx, Scriptable scope) 
throws URISyntaxException 
{
    return new Require(cx, scope, new StrongCachingModuleScriptProvider(
            new UrlModuleSourceProvider(Collections.singleton(new URI(
                    "file:" + dir.getAbsolutePath().replace(File.separatorChar,'/') + "/")), 
                    Collections.singleton(new URI(ComplianceTest.class.getResource(".").toExternalForm() + "/")))),
                    null, null, false);
}
项目:rhino-android    文件:RequireJarTest.java   
private Require getSandboxedRequire(Context cx, Scriptable scope, boolean sandboxed)
        throws URISyntaxException
{
    return new Require(cx, cx.initStandardObjects(), 
            new StrongCachingModuleScriptProvider(
                    new UrlModuleSourceProvider(Collections.singleton(
                            getDirectory()), null)), null, null, true);
}
项目:code404    文件:RequireTest.java   
private Require getSandboxedRequire(Context cx, Scriptable scope, boolean sandboxed)
        throws URISyntaxException
{
    return new Require(cx, cx.initStandardObjects(),
            new StrongCachingModuleScriptProvider(
                    new UrlModuleSourceProvider(Collections.singleton(
                            getDirectory()), null)), null, null, true);
}
项目:code404    文件:RequireJarTest.java   
private Require getSandboxedRequire(Context cx, Scriptable scope, boolean sandboxed)
        throws URISyntaxException
{
    return new Require(cx, cx.initStandardObjects(), 
            new StrongCachingModuleScriptProvider(
                    new UrlModuleSourceProvider(Collections.singleton(
                            getDirectory()), null)), null, null, true);
}
项目:code404    文件:ComplianceTest.java   
private static Require createRequire(File dir, Context cx, Scriptable scope)
throws URISyntaxException
{
    return new Require(cx, scope, new StrongCachingModuleScriptProvider(
            new UrlModuleSourceProvider(
                    Collections.singleton(dir.getAbsoluteFile().toURI()),
                    Collections.singleton(new URI(ComplianceTest.class.getResource(".").toExternalForm() + "/")))),
                    null, null, false);
}
项目:rhino-jscover    文件:RequireTest.java   
private Require getSandboxedRequire(Context cx, Scriptable scope, boolean sandboxed)
        throws URISyntaxException
{
    return new Require(cx, cx.initStandardObjects(),
            new StrongCachingModuleScriptProvider(
                    new UrlModuleSourceProvider(Collections.singleton(
                            getDirectory()), null)), null, null, true);
}
项目:rhino-jscover    文件:RequireJarTest.java   
private Require getSandboxedRequire(Context cx, Scriptable scope, boolean sandboxed)
        throws URISyntaxException
{
    return new Require(cx, cx.initStandardObjects(), 
            new StrongCachingModuleScriptProvider(
                    new UrlModuleSourceProvider(Collections.singleton(
                            getDirectory()), null)), null, null, true);
}
项目:rhino-jscover    文件:ComplianceTest.java   
private static Require createRequire(File dir, Context cx, Scriptable scope)
throws URISyntaxException
{
    return new Require(cx, scope, new StrongCachingModuleScriptProvider(
            new UrlModuleSourceProvider(
                    Collections.singleton(dir.getAbsoluteFile().toURI()),
                    Collections.singleton(new URI(ComplianceTest.class.getResource(".").toExternalForm() + "/")))),
                    null, null, false);
}
项目:astor    文件:RequireTest.java   
private Require getSandboxedRequire(Context cx, Scriptable scope, boolean sandboxed)
        throws URISyntaxException
{
    return new Require(cx, cx.initStandardObjects(),
            new StrongCachingModuleScriptProvider(
                    new UrlModuleSourceProvider(Collections.singleton(
                            getDirectory()), null)), null, null, true);
}
项目:astor    文件:RequireJarTest.java   
private Require getSandboxedRequire(Context cx, Scriptable scope, boolean sandboxed)
        throws URISyntaxException
{
    return new Require(cx, cx.initStandardObjects(),
            new StrongCachingModuleScriptProvider(
                    new UrlModuleSourceProvider(Collections.singleton(
                            getDirectory()), null)), null, null, true);
}
项目:astor    文件:ComplianceTest.java   
private static Require createRequire(File dir, Context cx, Scriptable scope)
throws URISyntaxException
{
    return new Require(cx, scope, new StrongCachingModuleScriptProvider(
            new UrlModuleSourceProvider(
                    Collections.singleton(dir.getAbsoluteFile().toURI()),
                    Collections.singleton(new URI(ComplianceTest.class.getResource(".").toExternalForm() + "/")))),
                    null, null, false);
}
项目:Rhino-Prov-Mod    文件:RequireTest.java   
private Require getSandboxedRequire(Context cx, Scriptable scope, boolean sandboxed)
        throws URISyntaxException
{
    return new Require(cx, cx.initStandardObjects(),
            new StrongCachingModuleScriptProvider(
                    new UrlModuleSourceProvider(Collections.singleton(
                            getDirectory()), null)), null, null, true);
}
项目:Rhino-Prov-Mod    文件:RequireJarTest.java   
private Require getSandboxedRequire(Context cx, Scriptable scope, boolean sandboxed)
        throws URISyntaxException
{
    return new Require(cx, cx.initStandardObjects(), 
            new StrongCachingModuleScriptProvider(
                    new UrlModuleSourceProvider(Collections.singleton(
                            getDirectory()), null)), null, null, true);
}
项目:Rhino-Prov-Mod    文件:ComplianceTest.java   
private static Require createRequire(File dir, Context cx, Scriptable scope)
throws URISyntaxException
{
    return new Require(cx, scope, new StrongCachingModuleScriptProvider(
            new UrlModuleSourceProvider(
                    Collections.singleton(dir.getAbsoluteFile().toURI()),
                    Collections.singleton(new URI(ComplianceTest.class.getResource(".").toExternalForm() + "/")))),
                    null, null, false);
}