Announcement Announcement Module
Collapse
No announcement yet.
How to set java this keyword in springs config file Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to set java this keyword in springs config file

    I have a bean in which one of the properties need to be set with "this" keyword. Basically one of the property of the bean needs to be the instance of bean itself that is creating it.

    Not sure how to do this. Any help on this?

  • #2
    Setup up a custom BeanPostProcessor, or setup a custom factory bean, with a factory method to create the target bean (Factory design pattern), or setup a wrapper around the target bean, which sets the required property and delegates calls to the target bean (Decorator design pattern).

    Comment

    Working...
    X