Results 1 to 2 of 2

Thread: How to set java this keyword in springs config file

  1. #1
    Join Date
    Jan 2009
    Posts
    20

    Default 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. #2
    Join Date
    Jun 2009
    Posts
    23

    Default

    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).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •