You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tamaya.apache.org by "Anatole Tresch (JIRA)" <ji...@apache.org> on 2015/06/09 13:49:01 UTC

[jira] [Assigned] (TAMAYA-54) DefaultServiceContext ignores @Priority

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

Anatole Tresch reassigned TAMAYA-54:
------------------------------------

    Assignee: Anatole Tresch

> DefaultServiceContext ignores @Priority
> ---------------------------------------
>
>                 Key: TAMAYA-54
>                 URL: https://issues.apache.org/jira/browse/TAMAYA-54
>             Project: Tamaya
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.1-incubating
>            Reporter: Reinhard Sandtner
>            Assignee: Anatole Tresch
>         Attachments: TAMAYA-54.patch
>
>
> according to the javadoc {{getService(Class<T>)}} should return the Service with the highest Priority or throw a ConfigException if multiple Services with the highest priority are found.
> {code}
>     /**
>      * Access a service singleton via its type.
>      * If multiple implementations for the very serviceType exist then
>      * the one with the highest {@link javax.annotation.Priority} will be used.
>      *
>      * @param serviceType the service type.
>      * @return The instance to be used, never {@code null}
>      * @throws org.apache.tamaya.ConfigException if there are multiple service implementations with the maximum priority.
>      */
> {code}
> i'll start a discussion for default Priority if @Priority is not present



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)