Skip to content

Commit

Permalink
Stop using deprecated CDI API (addAnnotatedType). Continue #3845
Browse files Browse the repository at this point in the history
Change-Id: Icb2e0f6a30d89c6d4c8cf34c892ad91b2583b536
Signed-off-by: Jan Supol <jan.supol@oracle.com>
  • Loading branch information
jansupol committed Oct 24, 2018
1 parent a36c317 commit 7ee16ac
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -67,9 +67,13 @@ public class CdiInterceptorWrapperExtension implements Extension {
* @param beanManager current bean manager.
*/
private void beforeBeanDiscovery(@Observes BeforeBeanDiscovery beforeBeanDiscoveryEvent, final BeanManager beanManager) {
beforeBeanDiscoveryEvent.addAnnotatedType(beanManager.createAnnotatedType(CdiInterceptorWrapper.class));
beforeBeanDiscoveryEvent.addAnnotatedType(beanManager.createAnnotatedType(CdiInterceptorWrapper.class),
"Jersey " + CdiInterceptorWrapper.class.getName()
);
interceptorAnnotatedType = beanManager.createAnnotatedType(ValidationInterceptor.class);
beforeBeanDiscoveryEvent.addAnnotatedType(interceptorAnnotatedType);
beforeBeanDiscoveryEvent.addAnnotatedType(interceptorAnnotatedType,
"Jersey " + ValidationInterceptor.class.getName()
);
}

/**
Expand Down

0 comments on commit 7ee16ac

Please sign in to comment.