Also note that we are only using BeforeDestroyedLiteral (as our own class) because of double CDI impl in WFLY where we cannot rely on CDI API 2.0 always being there. Otherwise, our code should be using CDI's BeforeDestroyed That being said, it's the underlying AnnotationLiteral causing this. While it should be fixed on CDI side, that will take certain (non-short) amount of time. So meanwhile, we should probably do what Martin suggested. |