Examples of ChainBase


Examples of org.apache.beehive.netui.core.chain.impl.ChainBase

            CommandConfig commandConfig = (CommandConfig)chainConfigs.get(i);
            assert commandConfig != null;

            if(commandConfig instanceof ChainConfig) {
                ChainConfig chainConfig = (ChainConfig)commandConfig;
                Chain chain = new ChainBase();

                List commandConfigs = chainConfig.getCommands();
                for(int j = 0; j < commandConfigs.size(); j++) {
                    CommandConfig chainCommandConfig = (CommandConfig)commandConfigs.get(j);
                    Command command = createCommand(chainCommandConfig);
                    chain.addCommand(command);
                }
                catalog.addCommand(chainConfig.getName(), chain);
            }
            else {
                Command command = createCommand(commandConfig);
View Full Code Here

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

   * (non-Javadoc)
   *
   * @see org.springframework.beans.factory.config.AbstractFactoryBean#createInstance()
   */
  protected Object createInstance() throws Exception {
    return new ChainBase();
  }
View Full Code Here

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

    }

    // Test ability to lookup and execute a chain
    public void testExecuteMethodLookup_1b() {

        ChainBase chain = new ChainBase();
        chain.addCommand(new DelegatingCommand("1b1"));
        chain.addCommand(new DelegatingCommand("1b2"));
        chain.addCommand(new NonDelegatingCommand("1b3"));
       
        // use default catalog
        catalog.addCommand("foo", chain);
        command.setName("foo");
View Full Code Here

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

    }

    // Test ability to lookup and execute a chain using the context
    public void testExecuteMethodLookup_2b() {

        ChainBase chain = new ChainBase();
        chain.addCommand(new DelegatingCommand("2b1"));
        chain.addCommand(new DelegatingCommand("2b2"));
        chain.addCommand(new NonDelegatingCommand("2b3"));

        // use default catalog
        catalog.addCommand("foo", chain);
        command.setNameKey("nameKey");
        context.put("nameKey", "foo");
View Full Code Here

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

    }

    // Test ability to lookup and execute a chain
    public void testExecuteMethodLookup_1b() {

        ChainBase chain = new ChainBase();
        chain.addCommand(new DelegatingCommand("1b1"));
        chain.addCommand(new DelegatingCommand("1b2"));
        chain.addCommand(new NonDelegatingCommand("1b3"));
       
        // use default catalog
        catalog.addCommand("foo", chain);
        command.setName("foo");
View Full Code Here

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

    }

    // Test ability to lookup and execute a chain using the context
    public void testExecuteMethodLookup_2b() {

        ChainBase chain = new ChainBase();
        chain.addCommand(new DelegatingCommand("2b1"));
        chain.addCommand(new DelegatingCommand("2b2"));
        chain.addCommand(new NonDelegatingCommand("2b3"));

        // use default catalog
        catalog.addCommand("foo", chain);
        command.setNameKey("nameKey");
        context.put("nameKey", "foo");
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.