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 8e6fb5636b
commit 9a23a679bd
1 changed files with 1 additions and 1 deletions

View File

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