HHH-15084 Remove use of BeanManager.createInjectionTarget(AnnotatedType)

This commit is contained in:
Brian Stansberry 2022-02-18 06:56:04 -06:00 committed by Sanne Grinovero
parent 60283ce9ea
commit c2bc5991db
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ public class JpaCompliantLifecycleStrategy implements BeanLifecycleStrategy {
} }
try { try {
this.injectionTarget = beanManager.createInjectionTarget( annotatedType ); this.injectionTarget = beanManager.getInjectionTargetFactory( annotatedType ).createInjectionTarget( (Bean) null );
this.creationalContext = beanManager.createCreationalContext( null ); this.creationalContext = beanManager.createCreationalContext( null );
this.beanInstance = this.injectionTarget.produce( creationalContext ); this.beanInstance = this.injectionTarget.produce( creationalContext );