batchee-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reinhard Sandtner (JIRA)" <>
Subject [jira] [Commented] (BATCHEE-36) Befor- and AfterJob(Step)ScopeListener
Date Mon, 05 May 2014 18:04:22 GMT


Reinhard Sandtner commented on BATCHEE-36:

Hey, i'm sorry - my description wasn't really clear!

I think it's enough to have one StepScopeListener and one JobScopeListener

Help me if i'm wrong ;-) :
If we have more steps they will be executed one after the other and each Step has it's own
StepScope. imo exitStep() will be called after each step.

Why can we do that in one class? i've debugged cdi-job and it seems to work fine!

> Befor- and AfterJob(Step)ScopeListener
> --------------------------------------
>                 Key: BATCHEE-36
>                 URL:
>             Project: BatchEE
>          Issue Type: Improvement
>          Components: batchee-extensions
>    Affects Versions: 0.2-incubating
>            Reporter: Reinhard Sandtner
>            Priority: Minor
> why do we provide an AfterJob(Step)ScopeListener and a BeforeJob(Step)ScopeListener?
> Isn't it enough to have only one JobScopeListener and StepScopeListener which implements
both methods?
> {code}
> public void before(){...}
> public void after(){...}
> {code}

This message was sent by Atlassian JIRA

View raw message