Repository: incubator-batchee Updated Branches: refs/heads/master 9e869b6df -> 563769a1d
BATCHEE-125 add FIELD, METHOD to scope annotations Project: http://git-wip-us.apache.org/repos/asf/incubator-batchee/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-batchee/commit/563769a1 Tree: http://git-wip-us.apache.org/repos/asf/incubator-batchee/tree/563769a1 Diff: http://git-wip-us.apache.org/repos/asf/incubator-batchee/diff/563769a1 Branch: refs/heads/master Commit: 563769a1d106344fae9be7e7d52751cbf93db5d2 Parents: 9e869b6 Author: Alexander Falb <[email protected]> Authored: Tue Nov 21 10:59:50 2017 +0100 Committer: Mark Struberg <[email protected]> Committed: Tue Nov 21 11:06:01 2017 +0100 ---------------------------------------------------------------------- .../src/main/java/org/apache/batchee/cdi/scope/JobScoped.java | 4 +++- .../src/main/java/org/apache/batchee/cdi/scope/StepScoped.java | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-batchee/blob/563769a1/extensions/cdi/src/main/java/org/apache/batchee/cdi/scope/JobScoped.java ---------------------------------------------------------------------- diff --git a/extensions/cdi/src/main/java/org/apache/batchee/cdi/scope/JobScoped.java b/extensions/cdi/src/main/java/org/apache/batchee/cdi/scope/JobScoped.java index 7d4d4a1..40dbbe5 100644 --- a/extensions/cdi/src/main/java/org/apache/batchee/cdi/scope/JobScoped.java +++ b/extensions/cdi/src/main/java/org/apache/batchee/cdi/scope/JobScoped.java @@ -20,10 +20,12 @@ import javax.enterprise.context.NormalScope; import java.lang.annotation.Retention; import java.lang.annotation.Target; +import static java.lang.annotation.ElementType.FIELD; +import static java.lang.annotation.ElementType.METHOD; import static java.lang.annotation.RetentionPolicy.RUNTIME; import static java.lang.annotation.ElementType.TYPE; -@Target(TYPE) +@Target({TYPE, METHOD, FIELD}) @Retention(RUNTIME) @NormalScope public @interface JobScoped { http://git-wip-us.apache.org/repos/asf/incubator-batchee/blob/563769a1/extensions/cdi/src/main/java/org/apache/batchee/cdi/scope/StepScoped.java ---------------------------------------------------------------------- diff --git a/extensions/cdi/src/main/java/org/apache/batchee/cdi/scope/StepScoped.java b/extensions/cdi/src/main/java/org/apache/batchee/cdi/scope/StepScoped.java index aaba852..ff57767 100644 --- a/extensions/cdi/src/main/java/org/apache/batchee/cdi/scope/StepScoped.java +++ b/extensions/cdi/src/main/java/org/apache/batchee/cdi/scope/StepScoped.java @@ -20,10 +20,12 @@ import javax.enterprise.context.NormalScope; import java.lang.annotation.Retention; import java.lang.annotation.Target; +import static java.lang.annotation.ElementType.FIELD; +import static java.lang.annotation.ElementType.METHOD; import static java.lang.annotation.ElementType.TYPE; import static java.lang.annotation.RetentionPolicy.RUNTIME; -@Target(TYPE) +@Target({TYPE, METHOD, FIELD}) @Retention(RUNTIME) @NormalScope public @interface StepScoped {
