On Sat, 2010-01-09 at 01:51 -0800, Gurkan Erdogdu 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.
The interceptor types defined in 11.1.2 are also defined, for example,
in EJB 3.1 spec chapter 4.3.4. So what is the problem?
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
_______________________________________________
weld-dev mailing list
weld-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-dev