mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-07-05 06:48:38 +02:00
event annotation should be accessible on runtime
This commit is contained in:
@@ -31,12 +31,27 @@
|
||||
|
||||
package sonia.scm.event;
|
||||
|
||||
//~--- non-JDK imports --------------------------------------------------------
|
||||
|
||||
import sonia.scm.plugin.PluginAnnotation;
|
||||
|
||||
//~--- JDK imports ------------------------------------------------------------
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* This annotation marks classes which are receivable over the event bus of
|
||||
* scm-manager. This Event annotation is only for documentation and is not
|
||||
* accessible at runtime.
|
||||
* scm-manager.
|
||||
*
|
||||
* @author Sebastian Sdorra
|
||||
* @since 1.33
|
||||
*/
|
||||
@Documented
|
||||
@Target(ElementType.TYPE)
|
||||
@PluginAnnotation("event")
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface Event {}
|
||||
|
||||
Reference in New Issue
Block a user