Skip to content

Commit

Permalink
Introduce markers for static and runtime init recorder methods
Browse files Browse the repository at this point in the history
These are meant to replace the comments found in various recorder
methods
  • Loading branch information
geoand committed Apr 15, 2024
1 parent 5871b82 commit fd34e44
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package io.quarkus.runtime.annotations;

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

/**
* Marker annotation used to indicate that a recorder method is called during the runtime init phase
*/
@Retention(RetentionPolicy.SOURCE)
@Target(ElementType.METHOD)
public @interface RuntimeInit {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package io.quarkus.runtime.annotations;

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

/**
* Marker annotation used to indicate that a recorder method is called during the static init phase
*/
@Retention(RetentionPolicy.SOURCE)
@Target(ElementType.METHOD)
public @interface StaticInit {
}

0 comments on commit fd34e44

Please sign in to comment.