Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4289

SpringObjectFactory does not obey InitializingBean interface

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.3.20
    • Plugin - Spring
    • None

    Description

      SpringObjectFactory has the comment:

      // We don't need to call the init-method since one won't be registered.

      Unfortunately, that isn't true since the bean may implement the Spring interface: InitializingBean

      Instead of the comment, it should call:
      initializeBean(bean, bean.getClass().getName());

      Attachments

        Activity

          People

            lukaszlenart Lukasz Lenart
            perfnorm Jasper Rosenberg
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: