Examples of Expressions


Examples of org.apache.shindig.expressions.Expressions

  protected void setUp() throws Exception {
    super.setUp();
    JSONObject config = createConfig();

    JsonContainerConfig containerConfig =
        new JsonContainerConfig(config, new Expressions(new Functions(), null, new ShindigTypeConverter()));
    mockFetcher = mock(HttpFetcher.class);
    fetcher = new DefaultServiceFetcher(containerConfig, mockFetcher);
  }
View Full Code Here

Examples of org.apache.shindig.expressions.Expressions

    config.getJSONObject("default").
        getJSONObject(DefaultServiceFetcher.GADGETS_FEATURES_CONFIG)
        .remove(DefaultServiceFetcher.OSAPI_FEATURE_CONFIG);
    JsonContainerConfig containerConfig =
        new JsonContainerConfig(config,
            new Expressions(new Functions(), null, new ShindigTypeConverter()));
    fetcher = new DefaultServiceFetcher(containerConfig, mockFetcher);

    EasyMock.expect(mockFetcher.fetch(EasyMock.isA(HttpRequest.class))).andReturn(
        new HttpResponse("")).anyTimes();
    replay();
View Full Code Here

Examples of org.apache.shindig.expressions.Expressions

  @Before
  public void setUp() throws Exception {
    JSONObject config = createConfig();

    JsonContainerConfig containerConfig =
        new JsonContainerConfig(config, new Expressions(new Functions(), null, new ShindigTypeConverter()));
    mockFetcher = mock(HttpFetcher.class);
    fetcher = new DefaultServiceFetcher(containerConfig, mockFetcher);
  }
View Full Code Here

Examples of org.apache.shindig.expressions.Expressions

    config.getJSONObject("default").
        getJSONObject(DefaultServiceFetcher.GADGETS_FEATURES_CONFIG)
        .remove(DefaultServiceFetcher.OSAPI_FEATURE_CONFIG);
    JsonContainerConfig containerConfig =
        new JsonContainerConfig(config,
            new Expressions(new Functions(), null, new ShindigTypeConverter()));
    fetcher = new DefaultServiceFetcher(containerConfig, mockFetcher);

    EasyMock.expect(mockFetcher.fetch(EasyMock.isA(HttpRequest.class))).andReturn(
        new HttpResponse("")).anyTimes();
    replay();
View Full Code Here

Examples of org.apache.shindig.expressions.Expressions

  @Before
  @Override
  public void setUp() {
    super.setUp();
    expressions = new Expressions(null, null, new JasperTypeConverter(), new JasperProvider());
  }
View Full Code Here

Examples of org.jboss.seam.core.Expressions

      // the control
      assertEquals(facesContext.getApplication().evaluateExpressionGet(facesContext, expr, Object.class), "bar");
     
      // the test
      FacesLifecycle.setPhaseId(PhaseId.INVOKE_APPLICATION);
      Expressions expressions = new FacesExpressions();
      assert expressions.getELContext().getContext(FacesContext.class) != null;
      assertEquals(expressions.createValueExpression(expr).getValue(), "bar");
   }
View Full Code Here

Examples of org.jboss.seam.core.Expressions

    * method is primarily intended to be used from Java, not to expose a bean
    * property for component configuration. Use setRestrictions() for the later.
    */
   public void setRestrictionExpressionStrings(List<String> expressionStrings)
   {
      Expressions expressions = new Expressions();
      List<ValueExpression> restrictionVEs = new ArrayList<ValueExpression>(expressionStrings.size());
      for (String expressionString : expressionStrings)
      {
         restrictionVEs.add(expressions.createValueExpression(expressionString));
      }
      setRestrictions(restrictionVEs);
   }
View Full Code Here

Examples of org.jboss.seam.core.Expressions

      initDefaultMessages();
   }
  
   protected void initDefaultMessages()
   {
      Expressions expressions = new Expressions();
      if (createdMessage == null) {
         createdMessage = expressions.createValueExpression("Successfully created");
      }
      if (updatedMessage == null) {
         updatedMessage = expressions.createValueExpression("Successfully updated");
      }
      if (deletedMessage == null) {
         deletedMessage = expressions.createValueExpression("Successfully deleted");
      }
   }
View Full Code Here

Examples of org.jboss.seam.core.Expressions

    * method is primarily intended to be used from Java, not to expose a bean
    * property for component configuration. Use setRestrictions() for the later.
    */
   public void setRestrictionExpressionStrings(List<String> expressionStrings)
   {
      Expressions expressions = new Expressions();
      List<ValueExpression> restrictionVEs = new ArrayList<ValueExpression>(expressionStrings.size());
      for (String expressionString : expressionStrings)
      {
         restrictionVEs.add(expressions.createValueExpression(expressionString));
      }
      setRestrictions(restrictionVEs);
   }
View Full Code Here

Examples of org.jboss.seam.core.Expressions

    * method is primarily intended to be used from Java, not to expose a bean
    * property for component configuration. Use setRestrictions() for the later.
    */
   public void setRestrictionExpressionStrings(List<String> expressionStrings)
   {
      Expressions expressions = new Expressions();
      List<ValueExpression> restrictionVEs = new ArrayList<ValueExpression>(expressionStrings.size());
      for (String expressionString : expressionStrings)
      {
         restrictionVEs.add(expressions.createValueExpression(expressionString));
      }
      setRestrictions(restrictionVEs);
   }
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.