Examples of TreeStore


Examples of de.odysseus.el.tree.TreeStore

import de.odysseus.el.tree.TreeStore;
import de.odysseus.el.tree.impl.Cache;

public class TreeStoreTest extends TestCase {
  public void test() {
    TreeStore store = new TreeStore(BUILDER, new Cache(1));
    assertSame(BUILDER, store.getBuilder());

    Tree tree = store.get("1");
    assertNotNull(tree);
    assertSame(tree, store.get("1"));
  }
View Full Code Here

Examples of de.odysseus.el.tree.TreeStore

    context.getELResolver().setValue(context, null, "property_long_1", 1l);
    context.getELResolver().setValue(context, null, "indentifier_string", "bar"); // shadowed by variable indentifier_string
    context.getELResolver().setValue(context, null, "property_method_1", getClass().getMethod("method_1"));

    // var_var_long_1 --> var_long_1, var_property_long_1 --> property_long_1
    context.setVariable("var_var_long_1", new TreeValueExpression(new TreeStore(BUILDER, null), null, context.getVariableMapper(), null, "${var_long_1}", long.class))
    context.setVariable("var_property_long_1", new TreeValueExpression(new TreeStore(BUILDER, null), null, context.getVariableMapper(), null, "${property_long_1}", long.class))
  }
View Full Code Here

Examples of de.odysseus.el.tree.TreeStore

    };
  }
 
 
  private ExpressionFactory newExpressionFactory(CacheProvider cacheProvider) {
    TreeStore store = new TreeStore(new Builder(), createTreeCache(cacheProvider));
    return new ExpressionFactoryImpl(store, typeConverter);
  }
View Full Code Here

Examples of de.odysseus.el.tree.TreeStore

    /** Returns an <code>ExpressionFactory</code> instance.
     * @return A customized <code>ExpressionFactory</code> instance
     */
    public static ExpressionFactory newExpressionFactory() {
        return new ExpressionFactoryImpl(new TreeStore(new ExtendedBuilder(), new Cache(1000)));
    }
View Full Code Here

Examples of de.odysseus.el.tree.TreeStore

        throw new ELException("Cannot parse EL property " + PROP_CACHE_SIZE, e);
      }
    }
    Cache cache = cacheSize > 0 ? new Cache(cacheSize) : null;

    return new TreeStore(builder, cache);
  }
View Full Code Here

Examples of de.odysseus.el.tree.TreeStore

        throw new ELException("Cannot parse EL property " + PROP_CACHE_SIZE, e);
      }
    }
    Cache cache = cacheSize > 0 ? new Cache(cacheSize) : null;

    return new TreeStore(builder, cache);
  }
View Full Code Here

Examples of de.odysseus.el.tree.TreeStore

  /**
   * Any provided JUEL converter must implement both JUEL TypeConverter impl and ELTypeConverter
   */
  public ExpressionFactory newExpressionFactory(CacheProvider cacheProvider,
      ELTypeConverter converter) {
    TreeStore store = new TreeStore(new Builder(),
        createTreeCache(cacheProvider));
    return new ExpressionFactoryImpl(store, (TypeConverter) converter);
  }
View Full Code Here

Examples of de.odysseus.el.tree.TreeStore

        throw new ELException("Cannot parse EL property " + PROP_CACHE_SIZE, e);
      }
    }
    Cache cache = cacheSize > 0 ? new Cache(cacheSize) : null;

    return new TreeStore(builder, cache);
  }
View Full Code Here

Examples of de.odysseus.el.tree.TreeStore

import de.odysseus.el.tree.TreeStore;
import de.odysseus.el.tree.impl.Cache;

public class TreeStoreTest extends TestCase {
  public void test() {
    TreeStore store = new TreeStore(BUILDER, new Cache(1));
    assertSame(BUILDER, store.getBuilder());

    Tree tree = store.get("1");
    assertNotNull(tree);
    assertSame(tree, store.get("1"));
  }
View Full Code Here

Examples of de.odysseus.el.tree.TreeStore

    context.getELResolver().setValue(context, null, "indentifier_string", "bar"); // shadowed by variable indentifier_string
    context.getELResolver().setValue(context, null, "property_method_1", getClass().getMethod("method_1"));
    context.getELResolver().setValue(context, null, "property_method_1_expr", new TestMethodExpression(getClass().getMethod("method_1")));

    // var_var_long_1 --> var_long_1, var_property_long_1 --> property_long_1
    context.setVariable("var_var_long_1", new TreeValueExpression(new TreeStore(BUILDER, null), null, context.getVariableMapper(), null, "${var_long_1}", long.class))
    context.setVariable("var_property_long_1", new TreeValueExpression(new TreeStore(BUILDER, null), null, context.getVariableMapper(), null, "${property_long_1}", long.class))
  }
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.