Uploaded image for project: 'Spring Tool Suite'
  1. Spring Tool Suite
  2. STS-847

Autowired dependency graph does not render dependency between @Component being injected with DataSource created by <jdbc:embedded-database/>

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.3.0.RELEASE
    • Fix Version/s: Sprint 9, 2.3.1.RELEASE
    • Component/s: None
    • Labels:
      None
    • Environment:
      2.3.1.RC2
      Spring 3.0.1.RELEASE-A

      Description

      repro steps:

      1. unzip attached repro.zip
      2. import as existing project
      3. run tests to verify wiring works as expected
      4. visualize beans graph off applicationContext.xml to see that DataSource created by <jdbc:embedded-database/> does not link up to the FooRepository that depends on it.
      1. Screen shot 2010-03-05 at 9.35.05 AM.png
        59 kB

        Activity

        Hide
        cdupuis Christian Dupuis added a comment -

        The JDBC embedded-database element creates an instance of EmbeddedDatabaseFactoryBean which is an implementation of the FactoryBean interface.

        FactoryBeans impose certain limitations at development time and for the tools: essentially the runtime type of FactoryBeans is not deterministic without instantiating the FactoryBean and calling getObjectType().

        IDE-1026: FactoryBean products are not detected by AOP markers
        http://jira.springframework.org/browse/IDE-1026

        I guess we need a more common story to capture all the limitations of FactoryBeans.

        Christian

        Show
        cdupuis Christian Dupuis added a comment - The JDBC embedded-database element creates an instance of EmbeddedDatabaseFactoryBean which is an implementation of the FactoryBean interface. FactoryBeans impose certain limitations at development time and for the tools: essentially the runtime type of FactoryBeans is not deterministic without instantiating the FactoryBean and calling getObjectType(). IDE-1026 : FactoryBean products are not detected by AOP markers http://jira.springframework.org/browse/IDE-1026 I guess we need a more common story to capture all the limitations of FactoryBeans. Christian
        Hide
        cbeams Chris Beams added a comment -

        I just commented on IDE-1026 to this effect as well: why not use the parameterization information in the generic interface to determine the object type?

        Show
        cbeams Chris Beams added a comment - I just commented on IDE-1026 to this effect as well: why not use the parameterization information in the generic interface to determine the object type?

          People

          • Assignee:
            Unassigned
            Reporter:
            cbeams Chris Beams
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: