Package org.apache.shindig.gadgets

Examples of org.apache.shindig.gadgets.GadgetELResolver


   */
  public Results execute(GadgetContext context, Collection<PipelinedData> pipelines) {
    List<Object> results = Lists.newArrayList();
    Map<String, Object> elResults = Maps.newHashMap();
    CompositeELResolver rootObjects = new CompositeELResolver();
    rootObjects.add(new GadgetELResolver(context));
    rootObjects.add(new RootELResolver(elResults));
   
    List<PipelineState> pipelineStates = Lists.newArrayList();
    for (PipelinedData pipeline : pipelines) {
      PipelinedData.Batch batch = pipeline.getBatch(expressions, rootObjects);
View Full Code Here


      TemplateContext templateContext, ELResolver globals, TagRegistry registry) {

    this.registry = registry;
    this.templateContext = templateContext;
    this.elContext = expressions.newELContext(globals,
        new GadgetELResolver(templateContext.getGadget().getContext()),
        new TemplateELResolver(templateContext),
        new ElementELResolver());

    DocumentFragment result = template.getOwnerDocument().createDocumentFragment();
    processChildNodes(result, template);
View Full Code Here

    return resultsById;
  }

  private Batch getBatch(Gadget gadget) {
    return gadget.getCurrentView().getPipelinedData().getBatch(expressions,
        new GadgetELResolver(gadget.getContext()));
  }
View Full Code Here

      TemplateContext templateContext, ELResolver globals, TagRegistry registry) {

    this.registry = registry;
    this.templateContext = templateContext;
    this.elContext = expressions.newELContext(globals,
        new GadgetELResolver(templateContext.getGadget().getContext()),
        new TemplateELResolver(templateContext),
        new ElementELResolver());

    DocumentFragment result = template.getOwnerDocument().createDocumentFragment();
    processChildNodes(result, template);
View Full Code Here

    return resultsById;
  }

  private Batch getBatch(Gadget gadget) {
    return gadget.getCurrentView().getPipelinedData().getBatch(expressions,
        new GadgetELResolver(gadget.getContext()));
  }
View Full Code Here

    return resultsById;
  }

  private Batch getBatch(Gadget gadget) {
    return gadget.getCurrentView().getPipelinedData().getBatch(expressions,
        new GadgetELResolver(gadget.getContext()));
  }
View Full Code Here

    return resultsById;
  }

  private Batch getBatch(Gadget gadget) {
    return gadget.getCurrentView().getPipelinedData().getBatch(expressions,
        new GadgetELResolver(gadget.getContext()));
  }
View Full Code Here

      TemplateContext templateContext, ELResolver globals, TagRegistry registry) {

    this.registry = registry;
    this.templateContext = templateContext;
    this.elContext = expressions.newELContext(globals,
        new GadgetELResolver(templateContext.getGadget().getContext()),
        new TemplateELResolver(templateContext),
        new ElementELResolver());

    DocumentFragment result = template.getOwnerDocument().createDocumentFragment();
    processChildNodes(result, template);
View Full Code Here

              context.getIgnoreCache(), context.getContainer(), context.getView());

      MessageELResolver messageELResolver = new MessageELResolver(expressions, bundle);

      this.elContext = expressions.newELContext(messageELResolver,
              new GadgetELResolver(gadget.getContext()));
      this.elContext.putContext(GadgetContext.class, elContext);
      Document document = mutableContent.getDocument();
      processChildNodes(document);
      Element head = (Element) DomUtil.getFirstNamedChildNode(document.getDocumentElement(), "head");
View Full Code Here

      TemplateContext templateContext, ELResolver globals, TagRegistry registry) {

    this.registry = registry;
    this.templateContext = templateContext;
    this.elContext = expressions.newELContext(globals,
        new GadgetELResolver(templateContext.getGadget().getContext()),
        new TemplateELResolver(templateContext),
        new ElementELResolver());

    DocumentFragment result = null;
    synchronized (template) {
View Full Code Here

TOP

Related Classes of org.apache.shindig.gadgets.GadgetELResolver

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.