@Scope @Documented @Retention(value=RUNTIME) @Target(value={TYPE,METHOD,PARAMETER,FIELD}) public @interface SessionScoped
Mark a class whose instance, when get injected into program, should be instantiated only once per user session
Note we make it apply to ElementType.PARAMETER
by intention so in a controller method we can specify a class (e.g. a collection) to indicate the bean shall persist within a single request scope. E.g. if the interceptor and the action handler has the same signature, the bean will NOT been constructed for multiple times
Scope
Copyright © 2016–2018 OSGL (Open Source General Library). All rights reserved.