i have a factory and factory-method to generate a bean (@Component). Depending on a configuaration (property file), i need to return a @Component bean from the factory-method (or may be a similar requirement in postconstruct).
I can not use BeanFactoryUtil to get the bean as the context is not initialized so early. SO what are the options left ? Can someone guide me here ..