Package org.apache.commons.chain

Examples of org.apache.commons.chain.Command.execute()


        displayElement.addSymbol(createSymbol("@(ab)", "43"));
        displayElement.addSymbol(createSymbol("@(a)", "67"));

        clayContext.setChild(child);

        isFinal = command.execute(clayContext);
        assertEquals("command finished", true, isFinal);      
        assertEquals("value = 6743", "6743", child.getValue());     
       
       
    }
View Full Code Here


                    subContext.setParent(child);

                    Catalog catalog = getCatalog();
                    Command command = catalog
                            .getCommand(Globals.ADD_ACTION_LISTENER_COMMAND_NAME);
                    command.execute(subContext);

                }
            } else {
                log.error(getMessages().getMessage("assign.action.listener.error",
                        new Object[] { displayElement }));
View Full Code Here

            subContext.setJspIds(clayContext.getJspIds());

            Catalog catalog = getCatalog();
            Command command = catalog
                    .getCommand(Globals.ADD_COMPONENT_COMMAND_NAME);
            command.execute(subContext);

            UIComponent child = (UIComponent) subContext.getChild();

            // Increment the index if the new component is not a facet
            if (parent.getChildren().contains(child)) {
View Full Code Here

            }

            clayContext.setAttribute(a);

            try {
                command.execute(clayContext);
            } catch (Exception e) {
                log.error(getMessages().getMessage("assign.property.error",
                        new Object[] { a }), e);
                        throw e;
View Full Code Here

                    subContext.setParent(child);

                    Catalog catalog = getCatalog();
                    Command command = catalog
                            .getCommand(Globals.ADD_VALIDATOR_COMMAND_NAME);
                    command.execute(subContext);

                }
            } else {
                log.error(getMessages().getMessage("assign.validator.error",
                        new Object[] { displayElement }));
View Full Code Here

                subContext.setParent(child);

                Catalog catalog = getCatalog();
                Command command = catalog
                        .getCommand(Globals.ADD_CONVERTER_COMMAND_NAME);
                command.execute(subContext);

            } else {
                log.error(getMessages().getMessage("assign.converter.error",
                        new Object[] { displayElement }));
            }
View Full Code Here

        // Execute the "destroy" command in the "shale" catalog (if any)
        Command command = catalog.getCommand(COMMAND_DESTROY);
        if (command != null) {
            WebContext webContext = new ServletWebContext(context, null, null);
            try {
                command.execute(webContext);
            } catch (Exception e) {
                if (log().isErrorEnabled()) {
                    log().error(messages.getMessage("filter.destroyException"), e);
                }
            }
View Full Code Here

      // command returns true, the response has been completed already
      // so we do NOT invoke the actual application.
      command = catalog.getCommand(COMMAND_PREPROCESS);
      if (command != null) {
          try {
              result = command.execute(context);
          } catch (IOException e) {
              throw e;
          } catch (ServletException e) {
              throw e;
          } catch (Exception e) {
View Full Code Here

      // Invoke the "postprocess" command (if any is defined).
      command = catalog.getCommand(COMMAND_POSTPROCESS);
      if (command != null) {
          try {
              command.execute(context);
          } catch (IOException e) {
              throw e;
          } catch (ServletException e) {
              throw e;
          } catch (Exception e) {
View Full Code Here

        // Execute the "init" command in the "shale" catalog (if any)
        Command command = catalog.getCommand(COMMAND_INIT);
        if (command != null) {
            WebContext webContext = new ServletWebContext(context, null, null);
            try {
                command.execute(webContext);
            } catch (Exception e) {
                if (log().isErrorEnabled()) {
                    log().error(messages.getMessage("filter.initException"), e);
                }
                throw new ServletException(e);
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.