Package org.apache.isis.applib.services.command

Examples of org.apache.isis.applib.services.command.Command2


                if(phase.isExecutingOrLater()) {

                    // current event always references the command (originally created by the xactn)
                    event.setCommand(command);
                    if(command != null && command instanceof Command2) {
                        final Command2 command2 = (Command2) command;

                        command2.pushActionInteractionEvent(event);
                    }
                }
            } else {
                final Object source = ObjectAdapter.Util.unwrap(targetAdapter);
                final Object[] arguments = ObjectAdapter.Util.unwrap(argumentAdapters);
View Full Code Here


        }

        if (!(command instanceof Command2)) {
            return;
        }
        final Command2 command2 = (Command2) command;
        final List<ActionInteractionEvent<?>> events = command2.flushActionInteractionEvents();
        if (events.isEmpty()) {
            return;
        }

        // are all safe?
View Full Code Here

            if(commandService != null) {
                final Command command = commandContext.getCommand();
                commandService.complete(command);

                if(command instanceof Command2) {
                    final Command2 command2 = (Command2) command;
                    command2.flushActionInteractionEvents();
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.applib.services.command.Command2

Copyright © 2018 www.massapicom. 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.