Skip to content

Commit

Permalink
Adapt to API change in Spring Framework (#1146)
Browse files Browse the repository at this point in the history
  • Loading branch information
snicoll authored Sep 12, 2022
1 parent e892e0e commit d8094ec
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

import org.springframework.aot.generate.GeneratedMethod;
import org.springframework.aot.generate.GenerationContext;
import org.springframework.aot.generate.MethodReference;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.aot.BeanRegistrationAotContribution;
import org.springframework.beans.factory.aot.BeanRegistrationAotProcessor;
Expand Down Expand Up @@ -172,8 +171,7 @@ public void applyTo(GenerationContext generationContext, BeanRegistrationCode be
generatedInitializerClassNames.get(contextId)));
method.addStatement("return instance.withApplicationContextInitializers(initializers)");
});
beanRegistrationCode.addInstancePostProcessor(
MethodReference.ofStatic(beanRegistrationCode.getClassName(), postProcessorMethod.getName()));
beanRegistrationCode.addInstancePostProcessor(postProcessorMethod.toMethodReference());
}

}
Expand Down

0 comments on commit d8094ec

Please sign in to comment.