Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-10508

LazyInitTargetSourceCreator does not work in Java-based configuration

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 3.2.2
    • Fix Version/s: 4.1 GA
    • Component/s: Core:AOP, Core:DI
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      LazyInitTargetSourceCreator does not work in Java based configuration, as you can see in the example code in this forum thread: http://forum.springsource.org/showthread.php?125489-Configuration-BeanNameAutoProxyCreator-and-LazyInitTargetSourceCreator.

      Interesting: a workaround is making the @Bean method for the lazy service object static.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              juergen.hoeller Juergen Hoeller
              Reporter:
              tobias79 Tobias Flohre
              Last updater:
              Spring Issues
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 40 weeks, 2 days ago