Announcement Announcement Module
Collapse
No announcement yet.
autowire beans from factory-method or postconstruts Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • autowire beans from factory-method or postconstruts

    Hi,

    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 ..
Working...
X