All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kasource.kaevent.annotations.event.Event Maven / Gradle / Ivy

There is a newer version: 0.8.1
Show newest version
package org.kasource.kaevent.annotations.event;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.EventListener;

/**
 * Annotate Event classes with this annotation to register it with the event
 * listener framework.
 * 
 * NOTE: Only clases dervived from {@link java.util.EventObject} should be annotated
 * with this annotation.
 * 
 * @author rikard
 * @version $Id: Event.java 13 2010-08-18 09:09:46Z wigforss $
 **/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Event {
    Class listener();
    String[] channels() default {};
    boolean createChannels() default false;
 //   Class default ChannelImpl.class;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy