From 5703c051209ab87fdba07ed6364f4904d7966bcb Mon Sep 17 00:00:00 2001 From: Pepich Date: Wed, 1 Feb 2017 12:00:12 +0100 Subject: [PATCH] Added Version annotation, changed name --- .../annotations/AutoRegisterListener.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/com/redstoner/annotations/AutoRegisterListener.java diff --git a/src/com/redstoner/annotations/AutoRegisterListener.java b/src/com/redstoner/annotations/AutoRegisterListener.java new file mode 100644 index 0000000..fabdb5f --- /dev/null +++ b/src/com/redstoner/annotations/AutoRegisterListener.java @@ -0,0 +1,15 @@ +package com.redstoner.annotations; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** The auto register annotation, to be put onto Classes that implement listener when you are too lazy to register the events yourself. + * + * @author Pepich */ +@Target(ElementType.TYPE) +@Retention(RetentionPolicy.RUNTIME) +@Version(major = 1, minor = 0, revision = 1, compatible = 1) +public @interface AutoRegisterListener +{}