Talked with Mark about this briefly, and
I think the answer is no. I believe you can only apply interceptors
to ejbs in the ejb-jar.xml. There doesn't appear to be a way to apply
it to an arbitrary class that might be managed by CDI.
Sincerely,
Joe Bergmark
From:
Mark Struberg <struberg@yahoo.de>
To:
cdi-dev <cdi-dev@lists.jboss.org>,
Date:
01/03/2013 01:36 PM
Subject:
[cdi-dev] clarification about interceptors
in ejb-jar.xml
Sent by:
cdi-dev-bounces@lists.jboss.org
The cdi spec defines that
"Interceptors declared using @Interceptors or in ejb-jar.xml are called
before interceptors declared using interceptor
bindings"
does that mean that we need to apply interceptors defined in ejb-jar.xml
to pure CDI beans as well?