aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/lll/processor/annotations
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-04-12 14:04:25 +0200
committer zaaarf <zaaarf@proton.me>2023-04-12 14:04:25 +0200
commit3344fd766f6e7e0e405c3c2b4c02a8b7e05c7e3c (patch)
tree6813abeda018dab1fbaaa442cc46f00e0daff29c /src/main/java/ftbsc/lll/processor/annotations
parentabd9954ed3250f99a77f770fcdf9d41c75fd90a4 (diff)
feat: allow to register manually written IInjectors
Diffstat (limited to 'src/main/java/ftbsc/lll/processor/annotations')
-rw-r--r--src/main/java/ftbsc/lll/processor/annotations/RegisterBareInjector.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main/java/ftbsc/lll/processor/annotations/RegisterBareInjector.java b/src/main/java/ftbsc/lll/processor/annotations/RegisterBareInjector.java
new file mode 100644
index 0000000..1340bf7
--- /dev/null
+++ b/src/main/java/ftbsc/lll/processor/annotations/RegisterBareInjector.java
@@ -0,0 +1,18 @@
+package ftbsc.lll.processor.annotations;
+
+import ftbsc.lll.IInjector;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+
+/**
+ * Marks the class in question as a class to be added to the service provider file
+ * (META-INF/services/ftbsc.lll.IInjector) without actually processing it. This can
+ * be used to mix in a same project regular {@link IInjector}s and those generated
+ * by the processor.
+ * @since 0.6.0
+ */
+@Retention(RetentionPolicy.CLASS)
+@java.lang.annotation.Target(ElementType.TYPE)
+public @interface RegisterBareInjector {}