Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 3.1 RC2
    • Component/s: Core, Core:AOP
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      Equivalent to <context:spring-configured/>

      Because @Configuration classes don't produce bean definitions in quite the same way that XML configuration files do, an annotation-based @SpringConfigured annotation must work differently than <context:spring-configured/>. Consider the following approach:

      @Configurationpublic class SpringConfiguredBeans {

      @SpringConfigured
      public void someEntity(MyEntity entity)

      { entity.setRepository(myRepository()); }

      @Bean
      public MyRepository myRepository()

      { return new MyRepository(dataSource()); }

      // ...}

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cbeams Chris Beams
                Reporter:
                cbeams Chris Beams
                Last updater:
                Trevor Marshall
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 years, 21 weeks, 6 days ago