Examples of TemplateModule


Examples of org.apache.shindig.gadgets.templates.TemplateModule

    install(new ParseModule());
    install(new PreloadModule());
    install(new RenderModule());
    install(new RewriteModule());
    install(new TemplateModule());

    // Handlers for /gadgets/rpc
    bind(new TypeLiteral<Set<Object>>(){}).annotatedWith(
        Names.named("org.apache.shindig.gadgets.handlers"))
        .toInstance(ImmutableSet.<Object>of(InvalidationHandler.class, HttpRequestHandler.class));
View Full Code Here

Examples of org.apache.shindig.gadgets.templates.TemplateModule

    install(new ParseModule());
    install(new PreloadModule());
    install(new RenderModule());
    install(new RewriteModule());
    install(new SubstituterModule());
    install(new TemplateModule());
    install(new UriModule());
    install(new JsCompilerModule());
    install(new JsServingPipelineModule());

    // bind(Long.class).annotatedWith(Names.named("org.apache.shindig.serviceExpirationDurationMinutes")).toInstance(60l);
View Full Code Here

Examples of org.apache.shindig.gadgets.templates.TemplateModule

    install(new ParseModule());
    install(new PreloadModule());
    install(new RenderModule());
    install(new RewriteModule());
    install(new TemplateModule());

    // Handlers for /gadgets/rpc
    bind(new TypeLiteral<Set<Object>>(){}).annotatedWith(
        Names.named("org.apache.shindig.gadgets.handlers"))
        .toInstance(ImmutableSet.<Object>of(InvalidationHandler.class, HttpRequestHandler.class));
View Full Code Here

Examples of org.apache.shindig.gadgets.templates.TemplateModule

 
  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.templates.TemplateModule

    install(new ParseModule());
    install(new PreloadModule());
    install(new RenderModule());
    install(new RewriteModule());
    install(new SubstituterModule());
    install(new TemplateModule());
    install(new UriModule());
    install(new JsCompilerModule());
    install(new JsServingPipelineModule());

    // bind(Long.class).annotatedWith(Names.named("org.apache.shindig.serviceExpirationDurationMinutes")).toInstance(60l);
View Full Code Here

Examples of org.apache.shindig.gadgets.templates.TemplateModule

    install(new ParseModule());
    install(new PreloadModule());
    install(new RenderModule());
    install(new RewriteModule());
    install(new SubstituterModule());
    install(new TemplateModule());
    install(new UriModule());
    install(new JsCompilerModule());
    install(new JsServingPipelineModule());

    // We perform static injection on HttpResponse for cache TTLs.
View Full Code Here

Examples of org.apache.shindig.gadgets.templates.TemplateModule

    install(new ParseModule());
    install(new PreloadModule());
    install(new RenderModule());
    install(new RewriteModule());
    install(new SubstituterModule());
    install(new TemplateModule());
    install(new UriModule());
    install(new JsCompilerModule());
    install(new JsServingPipelineModule());

    // We perform static injection on HttpResponse for cache TTLs.
View Full Code Here

Examples of org.apache.shindig.gadgets.templates.TemplateModule

    install(new ParseModule());
    install(new PreloadModule());
    install(new RenderModule());
    install(new RewriteModule());
    install(new SubstituterModule());
    install(new TemplateModule());
    install(new UriModule());

    // bind(Long.class).annotatedWith(Names.named("org.apache.shindig.serviceExpirationDurationMinutes")).toInstance(60l);

    // We perform static injection on HttpResponse for cache TTLs.
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.