Examples of ContextBase


Examples of ch.qos.logback.core.ContextBase

    ruleMap.put(new ElementSelector("*/computation/literal"), new LiteralAction());
    ruleMap.put(new ElementSelector("*/computation/add"), new AddAction());
    ruleMap.put(new ElementSelector("*/computation/multiply"), new MultiplyAction());
   
    Context context = new ContextBase();
    SimpleConfigurator simpleConfigurator = new SimpleConfigurator(ruleMap);
    // link the configurator with its context
    simpleConfigurator.setContext(context);

    try {

Examples of ch.qos.logback.core.ContextBase

* @author Ceki Güulcü
*/
public class PrintMe {

  public static void main(String[] args) throws Exception {
    Context context = new ContextBase();

    Map<ElementSelector, Action> ruleMap = new HashMap<ElementSelector, Action>();

    // we start with the rule for the top-most (root) element
    ruleMap.put(new ElementSelector("*/foo"), new NOPAction());

Examples of ch.qos.logback.core.ContextBase

* @author Ceki G&uuml;ulc&uuml;
*/
public class PrintMe {

  public static void main(String[] args) throws Exception {
    Context context = new ContextBase();

    Map<Pattern, Action> ruleMap = new HashMap<Pattern, Action>();

    // we start with the rule for the top-most (root) element
    ruleMap.put(new Pattern("*/foo"), new NOPAction());

Examples of ch.qos.logback.core.ContextBase

* @author Ceki G&uuml;ulc&uuml;
*/
public class Calculator1 {

  public static void main(String[] args) throws Exception {
    Context context = new ContextBase();

    Map<Pattern, Action> ruleMap = new HashMap<Pattern, Action>();

    // Associate "/computation" pattern with ComputationAction1
    ruleMap.put(new Pattern("/computation"), new ComputationAction1());

Examples of org.apache.commons.chain.impl.ContextBase

            logger.setLevel(Level.WARN);

            String uri = command.getOptionValue("cli");
            Repository repository = JcrUtils.getRepository(uri);

            Context context = new ContextBase();
            CommandHelper.setRepository(context, repository, uri);
            try {
                Session session = repository.login();
                CommandHelper.setSession(context, session);
                CommandHelper.setCurrentNode(context, session.getRootNode());

Examples of org.apache.commons.chain.impl.ContextBase

    protected void tearDown() {
    }

    public void testSame() throws Exception {
        WrappingLookupCommand command = new WrappingLookupCommand();
        Context testContext = new ContextBase();

        Context wrapped = command.getContext(testContext);

        assertNotNull(wrapped);
        assertSame(testContext, wrapped);

Examples of org.apache.commons.chain.impl.ContextBase

    /**
     * Instantiate ActionContextBase, wrapping a default ContextBase
     * instance.
     */
    public ActionContextBase() {
        this(new ContextBase());
    }

Examples of org.apache.commons.chain.impl.ContextBase

    /**
     * Constructor
     */
    JcrClient() {
        super();
        ctx = new ContextBase();
        initOptions();
        initContext();
    }

Examples of org.apache.commons.chain.impl.ContextBase

   
   
    public void runChain( String chainName ) {
     
      // initialize context for the chain
      ctxBase = new ContextBase();
     
      try {
        createChain( chainName ).execute ( ctxBase );
      }
      catch ( Exception ex) {

Examples of org.apache.commons.chain.impl.ContextBase

     */
    public void setUp() {
        catalog = new CatalogBase();
        CatalogFactoryBase.getInstance().setCatalog(catalog);
        command = new LookupCommand();       
        context = new ContextBase();
    }
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.