tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard M. Lewis Ship (JIRA)" <j...@apache.org>
Subject [jira] Updated: (TAP5-230) Defining a service that implements the HibernateConfigurer service causes injection exceptions (due to the ambiguity)
Date Mon, 13 Oct 2008 23:51:44 GMT

     [ 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


Mime
View raw message