Package org.jmanage.event

Examples of org.jmanage.event.EventSystem$EventListenerWrapper


            if(!appConfig.isCluster())
                addApplication(appConfig);
        }
       
        // 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)){
                    throw new IllegalArgumentException("event must be of type ApplicationEvent");
                }
                if(event instanceof NewApplicationEvent){
View Full Code Here

TOP

Related Classes of org.jmanage.event.EventSystem$EventListenerWrapper

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.