Decorators and decorated classes are in different bean archives
My ear app which is running on JBoss AS 7.1.0.Final has two jars:
-
lib/one.jar
-
lib/two.jar
Both flags are CDI bean archives.
two.jar
depends on one.jar
.
A class decorated with style is in one.jar
.
The decorator class is in two.jar
If decorators are declared in beans.xml
two.jar
, they are not included. Does this work as expected?
Since it is one.jar
developed independently of two.jar
and has no dependency on two.jar
, I would expect decorators to be declared (included) in the archive where the decorator classes are stored.
How can one include the decorator class without modifying the decorated class archive?
source to share