Package org.jboss.mbui.gui.behaviour

Examples of org.jboss.mbui.gui.behaviour.InteractionCoordinator


            // noop
        }

        private void addStep(InteractionUnit interactionUnit)
        {
            InteractionCoordinator coordinator = context.get(ContextKey.COORDINATOR);

            final StatementContext delegate = coordinator.getStatementScope().getContext(interactionUnit.getId());
            assert delegate != null : "StatementContext not provided";

            DMRMapping mapping = (DMRMapping) interactionUnit.findMapping(DMR, new Predicate<DMRMapping>()
            {
                @Override
View Full Code Here


            // noop
        }

        private void addStep(Trigger<StereoTypes> interactionUnit)
        {
            InteractionCoordinator coordinator = context.get(ContextKey.COORDINATOR);

            final StatementContext delegate = coordinator.getStatementScope().getContext(interactionUnit.getId());
            assert delegate != null : "StatementContext not provided";
            assert interactionUnit.doesProduce();

            Resource<ResourceType> output = interactionUnit.getOutputs().iterator().next();
View Full Code Here

            // fetch dialog meta data
            final Dialog dialog  =  repository.getDialog(name);

            // create coordinator instance
            final InteractionCoordinator coordinator = new InteractionCoordinator(
                    dialog, globalContext, this
            );
            coordinators.put(name, coordinator);

            // top level interaction unit & context
            final Context context = new Context();

            // build reification pipeline
            Function<Context> prepareContext = new Function<Context>() {
                @Override
                public void execute(Control<Context> control) {
                    context.set(ContextKey.EVENTBUS, coordinator.getLocalBus());
                    context.set(ContextKey.COORDINATOR, coordinator);

                    control.proceed();
                }
            };
View Full Code Here

    }

    @Override
    public void execute(final Dialog dialog, final Context context) throws ReificationException
    {
        InteractionCoordinator coordinator = context.get(ContextKey.COORDINATOR);
        try
        {
            // Step 3: Verify integrity
            Integrity.check(
                    dialog.getInterfaceModel(),
                    coordinator.listProcedures()
            );
        }
        catch (IntegrityErrors integrityErrors)
        {
            if (integrityErrors.needsToBeRaised())
View Full Code Here

TOP

Related Classes of org.jboss.mbui.gui.behaviour.InteractionCoordinator

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.