[weld-dev] [jsr-299-eg] About @PostActivate and @PrePassivate

Gavin King gavin.king at gmail.com
Sat Jan 9 10:26:37 EST 2010


Read EJB 3.1 spec section 12.2.

"In addition to the PostConstruct and PreDestroy callback support
required by the Interceptors specificatoin, interceptors associated
with Stateful Session Beans may define PostActivate and PrePassivate
callbacks."

On Sat, Jan 9, 2010 at 3:51 AM, Gurkan Erdogdu <gurkanerdogdu at yahoo.com> wrote:
> Hi;
>
> @PostActivate and @PrePassivate annotations are defined on the EJB
> specification. Those annotations are not defined in the Interceptor
> specification. But in CDI specification, chapter 11.1.2 specifices the using
> of PRE_PASSIVATE and POST_ACTIVATE interception types.
>
> I think that this is wrong because those annotations must be defined on
> ManagedBean with passivating capable not in interceptor class.
>
> For example;
>
> In TCK , it tests
>
> Interceptor interceptor = get Some Interceptors....
> interceptor.intercept(InterceptionType.PRE_PASSIVATE or POST_ACTIVATE) is
> not meaningful, because interceptors may not define PRE_PASSIVATE or
> POST_ACTIVATE methods.
>
> I think that PRE_PASSIVATE and POST_ACTIVATE must be removed from
> InterceptionType enum.
>
> --Gurkan
> ________________________________
> Yahoo! Türkiye açıldı!
> Haber, Ekonomi, Videolar, Oyunlar hepsi Yahoo! Türkiye'de!
> www.yahoo.com.tr



-- 
Gavin King
gavin.king at gmail.com
http://in.relation.to/Bloggers/Gavin
http://hibernate.org
http://seamframework.org



More information about the weld-dev mailing list