Action beans should/must be "prototype" scope ?
Cantor, Scott
cantor.2 at osu.edu
Tue Feb 4 19:24:06 EST 2014
On 2/4/14, 7:19 PM, "Tom Zeller" <tzeller at dragonacea.biz> wrote:
>
>then the scope must be prototype. However, the scope is set in a bean
>definition file "far away" from the Java code, which seems potentially
>problematic. If there was a @Scope annotation, I might suggest it. Am
>I making sense ?
Yes.
>I think changing the default scope needs to be done in a
>BeanPostProcessor.
I thought you could set it on the beans element, maybe not. If not, I
guess we should do something, but there are likely going to be beans in
the flow bean files that would be singleton, so I don't know how we'd
limit the post-processor.
-- Scott
More information about the dev
mailing list