Package org.apache.shindig.common

Examples of org.apache.shindig.common.PropertiesModule


    );
    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


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

  @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

  @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

  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

    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

     * Only the entire properties file can be overridden.
     * {@inheritDoc}
     */
    @Override
    protected void configure() {
        install(new PropertiesModule(loadProperties()));
    }
View Full Code Here

  /**
   * Bind entity manager, services and entities used by samples
   */
  @Override
  protected void configure() {
    install(new PropertiesModule());
    install(new DefaultGuiceModule());
    install(new SocialApiGuiceModule());
    install(new OAuthModule());
    install(new JPASocialModule(entityManager));

View Full Code Here

  @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

        defaultContainerRewriterUris).create(SPEC_URL, defaultRewriterFeature,
        "default", false, true);
    defaultLinkRewriterNoCacheAndDebug = new DefaultProxyingLinkRewriterFactory(
        defaultContainerRewriterUris).create(SPEC_URL, defaultRewriterFeature,
        "default", true, true);
    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();

    ContainerConfig config = new AbstractContainerConfig() {
View Full Code Here

TOP

Related Classes of org.apache.shindig.common.PropertiesModule

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.