Hey folks, I'm working on a project that's using Spring Framework.
It's using a library X which has a class A with a method B.
I've another class C with a method D which is a part of my project.
Now, classes A & C are annotated with @Component and methods B & D are annotated with @PostConstruct.
During the start of my application, I need to ensure that bean of A is created before bean of C and essentially, method B gets executed before D.
Note that since A is coming from a library, I cannot modify it.
Can someone help with this?