I have a class as follows:
class FooBar {
    @Autowired
    SomeObj someObj;
    FooBar() {
        // Cant call this here as someObj is not yet initialized
        // someObj.someMethod();
    }
    private void init() {
        someObj.someMethod();
    }
}
I'm creating the object of fooBar as follows:
FooBar fooBar = new FooBar();
How can I automatically call init after creation and autowiring are complete?
 
    