Package org.jmanage.event

Examples of org.jmanage.event.EventSystem.addListener()


       
        // TODO: perfect dependency to be injected via Spring framework --rk
        EventSystem eventSystem = EventSystem.getInstance();
        
        /* Add the recorder to record the downtimes to the DB */
        eventSystem.addListener(recorder, ApplicationEvent.class);

        /* application event listener to add */
        eventSystem.addListener(new EventListener(){
            public void handleEvent(EventObject event) {
                if(!(event instanceof ApplicationEvent)){
View Full Code Here


        
        /* Add the recorder to record the downtimes to the DB */
        eventSystem.addListener(recorder, ApplicationEvent.class);

        /* application event listener to add */
        eventSystem.addListener(new EventListener(){
            public void handleEvent(EventObject event) {
                if(!(event instanceof ApplicationEvent)){
                    throw new IllegalArgumentException("event must be of type ApplicationEvent");
                }
                if(event instanceof NewApplicationEvent){
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.