Skip to content

Commit

Permalink
enh: added @documented and @inherited meta-annotations to CDI annotat…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
lprimak committed Sep 4, 2023
1 parent c92b82a commit b1dff04
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.PARAMETER;
import java.lang.annotation.Documented;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
Expand All @@ -35,5 +37,7 @@
*/
@Qualifier
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
@Target({METHOD, FIELD, PARAMETER})
public @interface NoSessionCreation { }
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.PARAMETER;

import java.lang.annotation.Documented;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
Expand All @@ -36,6 +36,7 @@
*/
@Qualifier
@Retention(RetentionPolicy.RUNTIME)
@Target({METHOD, FIELD, PARAMETER})
@Inherited
@Documented
@Target({METHOD, FIELD, PARAMETER})
public @interface Principal { }

0 comments on commit b1dff04

Please sign in to comment.