Tapestry 5
  1. Tapestry 5
  2. TAP5-230

Defining a service that implements the HibernateConfigurer service causes injection exceptions (due to the ambiguity)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.15
    • Fix Version/s: 5.0.16
    • Component/s: tapestry-hibernate
    • Labels:
      None

      Description

      the injection of the HibernateConfigurer to the HibernateSessionSource service needs to be qualified. the ioc container creates an exception if another service with the same interface is defined (even when fully qualified)

      public static void contributeHibernateSessionSource(
      OrderedConfiguration<HibernateConfigurer> config,
      HibernateConfigurer defaultHibernateConfigurer,
      ObjectLocator locator)

      should be:

      public static void contributeHibernateSessionSource(
      OrderedConfiguration<HibernateConfigurer> config,
      @Service("DefaultHibernateConfigurer") HibernateConfigurer defaultHibernateConfigurer,
      ObjectLocator locator)

        Activity

        Kristian Marinkovic created issue -
        Howard M. Lewis Ship made changes -
        Field Original Value New Value
        Assignee Howard M. Lewis Ship [ hlship ]
        Howard M. Lewis Ship made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        Howard M. Lewis Ship added a comment -

        Solved with the handy @Local annotation.

        Show
        Howard M. Lewis Ship added a comment - Solved with the handy @Local annotation.
        Howard M. Lewis Ship made changes -
        Summary unqualified injection of DefaultHibernateConfigurer within HibernateModule provokes IOC exceptions Defining a service that implements the HibernateConfigurer service causes injection exceptions (due to the ambiguity)
        Component/s tapestry-hibernate [ 12312473 ]
        Component/s tapestry-ioc [ 12312469 ]
        Howard M. Lewis Ship made changes -
        Resolution Fixed [ 1 ]
        Fix Version/s 5.0.16 [ 12313427 ]
        Status In Progress [ 3 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        19d 16h 39m 1 Howard M. Lewis Ship 13/Oct/08 23:47
        In Progress In Progress Closed Closed
        4m 20s 1 Howard M. Lewis Ship 13/Oct/08 23:51

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Kristian Marinkovic
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development