Package org.moyrax.resolver

Examples of org.moyrax.resolver.LibraryResolver


    engine = new ConfigurableEngine(this.runner.getClient());

    engine.registerClass(Global.class);
    engine.registerClass(Shell.class);

    Shell.setResolver("lib", new LibraryResolver("/org/moyrax/javascript/lib"));
    Shell.setResolver("classpath", resourceResolver);

    runner.getClient().setJavaScriptEngine(engine);
  }
View Full Code Here


    context = HtmlUnitContextFactory.getGlobal().enterContext();
    context.setOptimizationLevel(-1);
    scope = (ScriptableObject)context.initStandardObjects(shell);

    Shell.setResolver("lib", new LibraryResolver("/org/moyrax/javascript/lib"));
    // We only have the current project, so we initialize the ClassPathResolver
    // with the context class loader.
    Shell.setResolver("classpath", new ClassPathResolver(
        Thread.currentThread().getContextClassLoader()));
View Full Code Here

public class LibraryResolverTest {
  private LibraryResolver resolver;

  @Before
  public void setUp() {
    resolver = new LibraryResolver("/org/moyrax/javascript/");
  }
View Full Code Here

    });

    context.setClassLoader(new ContextClassLoader(
        Thread.currentThread().getContextClassLoader()));

    Shell.setResolver("lib", new LibraryResolver("/org/moyrax/javascript/lib"));
    Shell.setResolver("classpath", new ClassPathResolver(
        Thread.currentThread().getContextClassLoader()));

    loadContextResources(testingClient);
View Full Code Here

TOP

Related Classes of org.moyrax.resolver.LibraryResolver

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.