Package com.godshawk.lib.annotations.reflection.event

Examples of com.godshawk.lib.annotations.reflection.event.EventListener


        Arrays.stream(listenerClass.getDeclaredMethods()).
                filter(m -> m.isAnnotationPresent(EventListener.class)).sequential().forEach(methodsWithAnnotation::add);

        Set<Class<? extends EventBase>> eventClasses = new HashSet<>();
        for (Method method : methodsWithAnnotation) {
            EventListener annotation = method.getDeclaredAnnotation(EventListener.class);
            Class<? extends EventBase> eventClass = annotation.event();
            if (!eventClasses.contains(eventClass)) {
                eventClasses.add(eventClass);
            }
        }
View Full Code Here

TOP

Related Classes of com.godshawk.lib.annotations.reflection.event.EventListener

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.