Examples of GadgetFeature


Examples of org.apache.shindig.gadgets.GadgetFeature

    EasyMock.expect(gadget.getContext()).andReturn(gadgetContext).anyTimes();
  }

  private void expectFeatureLookup() throws GadgetException {
    EasyMock.expect(featureRegistry.getFeatures(EasyMock.<Collection<String>>anyObject())).andReturn(
        ImmutableSet.of(new GadgetFeature("swfobject",
            ImmutableList.of(
                JsLibrary.create(JsLibrary.Type.INLINE, "swfobject()", "swfobject", null)),
            Collections.<String>emptySet())));
    EasyMock.expect(gadgetContext.getContainer()).andReturn("default");
  }
View Full Code Here

Examples of org.apache.shindig.gadgets.GadgetFeature

    private final Map<String, GadgetFeature> features = Maps.newHashMap();

    public void addInline(String name, String content) throws GadgetException {
      List<JsLibrary> libs = Lists.newArrayList();
      libs.add(JsLibrary.create(JsLibrary.Type.INLINE, content, name, null));
      features.put(name, new GadgetFeature(name, libs, null));
    }
View Full Code Here

Examples of org.apache.shindig.gadgets.GadgetFeature

    }

    public void addExternal(String name, String content) throws GadgetException {
      List<JsLibrary> libs = Lists.newArrayList();
      libs.add(JsLibrary.create(JsLibrary.Type.URL, content, name, null));
      features.put(name, new GadgetFeature(name, libs, null));
    }
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.