Examples of AgendaEventListenerWrapper


Examples of org.drools.impl.StatefulKnowledgeSessionImpl.AgendaEventListenerWrapper

    public void addEventListener(AgendaEventListener listener) {
        if ( this.mappedAgendaListeners == null ) {
            this.mappedAgendaListeners = new IdentityHashMap<AgendaEventListener, AgendaEventListenerWrapper>();
        }
       
        AgendaEventListenerWrapper wrapper = new AgendaEventListenerWrapper( listener );
        this.mappedAgendaListeners.put( listener,
                                        wrapper );
        this.agendaEventSupport.addEventListener( wrapper );
    }
View Full Code Here

Examples of org.drools.impl.StatefulKnowledgeSessionImpl.AgendaEventListenerWrapper

    public void removeEventListener(AgendaEventListener listener) {
        if ( this.mappedAgendaListeners == null ) {
            this.mappedAgendaListeners = new IdentityHashMap<AgendaEventListener, AgendaEventListenerWrapper>();
        }
       
        AgendaEventListenerWrapper wrapper = this.mappedAgendaListeners.remove( listener );
        this.agendaEventSupport.removeEventListener( wrapper );
    }
View Full Code Here

Examples of org.drools.impl.StatefulKnowledgeSessionImpl.AgendaEventListenerWrapper

        commandService.execute( new AddEventListenerCommand( wrapper ) );
    }

    public void addEventListener(AgendaEventListener listener) {
        AgendaEventListenerWrapper wrapper = new StatefulKnowledgeSessionImpl.AgendaEventListenerWrapper( listener );

        this.mappedAgendaListeners.put( listener,
                                        wrapper );

        commandService.execute( new AddEventListenerCommand( wrapper ) );
View Full Code Here

Examples of org.drools.impl.StatefulKnowledgeSessionImpl.AgendaEventListenerWrapper

    public Collection<AgendaEventListener> getAgendaEventListeners() {
        Collection<org.drools.event.AgendaEventListener> listeners = commandService.execute( new GetAgendaEventListenersCommand() );
        Collection<AgendaEventListener> result = new ArrayList<AgendaEventListener>();

        for ( org.drools.event.AgendaEventListener listener : listeners ) {
            AgendaEventListenerWrapper wrapper = (AgendaEventListenerWrapper) listener;
            result.add( wrapper.unWrap() );
        }

        return result;
    }
View Full Code Here

Examples of org.drools.impl.StatefulKnowledgeSessionImpl.AgendaEventListenerWrapper

        commandService.execute( new RemoveEventListenerCommand( wrapper ) );
    }

    public void removeEventListener(AgendaEventListener listener) {
        AgendaEventListenerWrapper wrapper = this.mappedAgendaListeners.remove( listener );

        commandService.execute( new RemoveEventListenerCommand( wrapper ) );
    }
View Full Code Here

Examples of org.drools.impl.StatefulKnowledgeSessionImpl.AgendaEventListenerWrapper

    public void addEventListener(AgendaEventListener listener) {
        if ( this.mappedAgendaListeners == null ) {
            this.mappedAgendaListeners = new IdentityHashMap<AgendaEventListener, AgendaEventListenerWrapper>();
        }

        AgendaEventListenerWrapper wrapper = new AgendaEventListenerWrapper( listener );
        this.mappedAgendaListeners.put( listener, wrapper );
    }
View Full Code Here

Examples of org.drools.impl.StatefulKnowledgeSessionImpl.AgendaEventListenerWrapper

        return Collections.unmodifiableCollection( this.mappedAgendaListeners.keySet() );
    }

    public void removeEventListener(AgendaEventListener listener) {
        if ( this.mappedAgendaListeners != null ) {
            AgendaEventListenerWrapper wrapper = this.mappedAgendaListeners.remove( listener );
            this.agendaEventSupport.removeEventListener( wrapper );
        }
    }
View Full Code Here

Examples of org.drools.impl.StatefulKnowledgeSessionImpl.AgendaEventListenerWrapper

    public void addEventListener(AgendaEventListener listener) {
        if ( this.mappedAgendaListeners == null ) {
            this.mappedAgendaListeners = new IdentityHashMap<AgendaEventListener, AgendaEventListenerWrapper>();
        }

        AgendaEventListenerWrapper wrapper = new AgendaEventListenerWrapper( listener );
        this.mappedAgendaListeners.put( listener,
                                        wrapper );
        this.agendaEventSupport.addEventListener( wrapper );
    }
View Full Code Here

Examples of org.drools.impl.StatefulKnowledgeSessionImpl.AgendaEventListenerWrapper

    public void removeEventListener(AgendaEventListener listener) {
        if ( this.mappedAgendaListeners == null ) {
            this.mappedAgendaListeners = new IdentityHashMap<AgendaEventListener, AgendaEventListenerWrapper>();
        }

        AgendaEventListenerWrapper wrapper = this.mappedAgendaListeners.remove( listener );
        this.agendaEventSupport.removeEventListener( wrapper );
    }
View Full Code Here

Examples of org.drools.impl.StatefulKnowledgeSessionImpl.AgendaEventListenerWrapper

    public void addEventListener(AgendaEventListener listener) {
        if ( this.mappedAgendaListeners == null ) {
            this.mappedAgendaListeners = new IdentityHashMap<AgendaEventListener, AgendaEventListenerWrapper>();
        }

        AgendaEventListenerWrapper wrapper = new AgendaEventListenerWrapper( listener );
        this.mappedAgendaListeners.put( listener,
                                        wrapper );
        this.agendaEventSupport.addEventListener( wrapper );
    }
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.