You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2008/10/14 01:51:44 UTC

[jira] Updated: (TAP5-230) Defining a service that implements the HibernateConfigurer service causes injection exceptions (due to the ambiguity)

     [ https://issues.apache.org/jira/browse/TAP5-230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAP5-230:
--------------------------------------

    Component/s:     (was: tapestry-ioc)
                 tapestry-hibernate
        Summary: Defining a service that implements the HibernateConfigurer service causes injection exceptions (due to the ambiguity)  (was: unqualified injection of DefaultHibernateConfigurer within HibernateModule provokes IOC exceptions)

Solved with the handy @Local annotation.

> Defining a service that implements the HibernateConfigurer service causes injection exceptions (due to the ambiguity)
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-230
>                 URL: https://issues.apache.org/jira/browse/TAP5-230
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-hibernate
>    Affects Versions: 5.0.15
>            Reporter: Kristian Marinkovic
>            Assignee: Howard M. Lewis Ship
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org