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!