NovaTecConsulting/BeanTest — pull request #10 by qabbasi (2014-10-29 08:30:49+00:00)
Title: Issue: Injection on EJB interceptors is not working #3

This commit fixes the injection failure in @EJB Interceptors. See issue #3.

Details:
- implemented an approach based on an @InterceptorBinding. The solution
replaces @Interceptors() in processed beans with an global interceptor
wrapper/proxy. The wrapper delegates the InvocationContext to the
modified InterceptorBinding.
- implemented a cache optimization regarding the modification of
Interceptor bindings in @EJB Interceptors.
- implemented several test cases:
Created Sample EJB together with a basic @AroundInvoke Interceptor to
verify the NPE in the Interceptor proposed by @agori.
- Fixed Debug log in EntityManagerProducer
- Processing @Interceptors annotation and replacing with altered
InterceptionBindings.
- Saving altered InterceptorBindings in GlobalInterceptorImpl