[weld-dev] About @PostActivate and @PrePassivate

Gurkan Erdogdu gurkanerdogdu at yahoo.com
Sat Jan 9 04:51:59 EST 2010


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ı!  http://yahoo.com.tr
İnternet üzerindeki en iyi içeriği Yahoo! Türkiye sizlere sunuyor!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20100109/ccec23b9/attachment.html 


More information about the weld-dev mailing list