Examples of addWaveListener()


Examples of org.jrebirth.af.core.wave.Wave.addWaveListener()

        wait = true;

        Wave wave = globalFacade.getCommandFacade().retrieve(commandClass).run();

        wave.addWaveListener(new DefaultWaveListener() {

            /**
             * {@inheritDoc}
             */
            @Override
View Full Code Here

Examples of org.jrebirth.af.core.wave.Wave.addWaveListener()

        final Wave wave = StageWaveBuilder.create()
                .action(StageAction.show)
                .key(stageKey)
                .build();

        wave.addWaveListener(new WaveListener() {

            @Override
            public void waveSent(final Wave wave) {
                // Nothing to do yet
View Full Code Here

Examples of org.jrebirth.af.core.wave.Wave.addWaveListener()

        } else {

            LOGGER.trace("Unqueue wave N° " + this.index + " >> " + waveToRun.toString());

            // Attach a listener to be informed when the wave will be consumed
            waveToRun.addWaveListener(this);
            // Send it to the queue in order to perform it
            sendWave(waveToRun);
        }

    }
View Full Code Here

Examples of org.jrebirth.af.core.wave.Wave.addWaveListener()

                                .waveGroup(WaveGroup.CALL_COMMAND)
                                .relatedClass(this.commandList.get(this.commandRunIndex))
                                .build();

                        subCommandWave.linkWaveBean(wave.getWaveBean());
                        subCommandWave.addWaveListener(this);
                        sendWave(subCommandWave);
                    }
                }

            } else {
View Full Code Here

Examples of org.jrebirth.af.core.wave.Wave.addWaveListener()

                // Launch all sub command in parallel
                for (final Class<? extends Command> commandClass : this.commandList) {
                    final Wave commandWave = getLocalFacade().retrieve(commandClass).run();
                    // register to Wave status of all command triggered
                    commandWave.addWaveListener(this);
                    // Store the pending command to know when all command are achieved
                    this.pendingWaves.add(commandWave);
                }
            }
        }
View Full Code Here

Examples of org.jrebirth.af.core.wave.Wave.addWaveListener()

                        .data(WaveData.build(resultWaveItem, res))
                        .build();
            }

            returnWave.setRelatedWave(this.wave);
            returnWave.addWaveListener(new ServiceTaskReturnWaveListener());

            // Send the return wave to interested components
            this.service.sendWave(returnWave);
        } else {
            // No service return wave Type defined
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.