Examples of ParseModule


Examples of org.apache.shindig.gadgets.parse.ParseModule

    ExecutorService service = Executors.newCachedThreadPool();
    bind(Executor.class).toInstance(service);
    bind(ExecutorService.class).toInstance(service);

    install(new ParseModule());
    install(new PreloadModule());
    install(new RenderModule());
    install(new RewriteModule());
    install(new TemplateModule());
View Full Code Here

Examples of org.apache.shindig.gadgets.parse.ParseModule

    bindConstant().annotatedWith(Names.named("shindig.jsload.ttl-secs")).to(60 * 60); // 1 hour
    bindConstant().annotatedWith(Names.named("shindig.jsload.require-onload-with-jsload")).to(true);

    install(new DefaultConfigContributorModule());
    install(new ParseModule());
    install(new PreloadModule());
    install(new RenderModule());
    install(new RewriteModule());
    install(new SubstituterModule());
    install(new TemplateModule());
View Full Code Here

Examples of org.apache.shindig.gadgets.parse.ParseModule

    );
    rewriter
        = new RenderingGadgetRewriter(messageBundleFactory, config, featureRegistryProvider,
            jsServingPipeline, jsUriManager,
            new DefaultConfigProcessor(configContributors, config), gadgetAdminStore);
    Injector injector = Guice.createInjector(new ParseModule(), new PropertiesModule());
    parser = injector.getInstance(GadgetHtmlParser.class);
  }
View Full Code Here

Examples of org.apache.shindig.gadgets.parse.ParseModule

public class MutableContentTest {
  private MutableContent mhc;

  @Before
  public void setUp() throws Exception {
    Injector injector = Guice.createInjector(new ParseModule(), new PropertiesModule());
    mhc = new MutableContent(injector.getInstance(GadgetHtmlParser.class), "DEFAULT VIEW");
  }
View Full Code Here

Examples of org.apache.shindig.gadgets.parse.ParseModule

  @Before
  public void setUp() throws Exception {
    processor = new MyTemplateProcessor();
    processor.context = new TemplateContext(gadget, Collections.<String, JSONObject>emptyMap());
    Injector injector = Guice.createInjector(new ParseModule(), new PropertiesModule());
    documentProvider = injector.getInstance(DOMImplementation.class);
    parser = injector.getInstance(SocialMarkupHtmlParser.class);
    featureRegistry = mock(GadgetFeatureRegistry.class);
    handler = new FlashTagHandler(new BeanJsonConverter(injector), featureRegistry,
        "http://example.org/ns");
View Full Code Here

Examples of org.apache.shindig.gadgets.parse.ParseModule

  @Before
  public void setUp() throws Exception {
    featureRegistry = new FakeGadgetFeatureRegistry();
    rewriter
        = new RenderingGadgetRewriter(messageBundleFactory, config, featureRegistry, urlGenerator, null);
    Injector injector = Guice.createInjector(new ParseModule(), new PropertiesModule());
    parser = injector.getInstance(GadgetHtmlParser.class);
  }
View Full Code Here

Examples of org.apache.shindig.gadgets.parse.ParseModule

 
  private static final String TEST_NS = "http://example.com";
 
  @Before
  public void setUp() throws Exception {
    Injector injector = Guice.createInjector(new ParseModule(), new TemplateModule(),
        new PropertiesModule());
    parser = injector.getInstance(GadgetHtmlParser.class);
    processor = injector.getInstance(TemplateProcessor.class);
    context = new TemplateContext(new Gadget(), null);
  }
View Full Code Here

Examples of org.apache.shindig.gadgets.parse.ParseModule

    tags = defaultRewriterFeature.getIncludedTags();
    defaultLinkRewriter = new ProxyingLinkRewriter(
        SPEC_URL,
        defaultRewriterFeature,
        DEFAULT_PROXY_BASE);
    injector = Guice.createInjector(new ParseModule(), new PropertiesModule(), new TestModule());
    parser = injector.getInstance(GadgetHtmlParser.class);
    fakeResponse = new HttpResponseBuilder().setHeader("Content-Type", "unknown")
        .setResponse(new byte[]{ (byte)0xFE, (byte)0xFF}).create();

    config = new AbstractContainerConfig() {
View Full Code Here

Examples of org.apache.shindig.gadgets.parse.ParseModule

        public void run() {
            service.shutdownNow();
        }
    });

    install(new ParseModule());
    install(new PreloadModule());
    install(new RenderModule());
    install(new RewriteModule());
    install(new TemplateModule());
View Full Code Here

Examples of org.apache.shindig.gadgets.parse.ParseModule

  @Before
  public void setUp() throws Exception {
    featureRegistry = createMock(FeatureRegistry.class);
    rewriter
        = new RenderingGadgetRewriter(messageBundleFactory, config, featureRegistry, urlGenerator, null);
    Injector injector = Guice.createInjector(new ParseModule(), new PropertiesModule());
    parser = injector.getInstance(GadgetHtmlParser.class);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.