[
https://issues.apache.org/jira/browse/TAMAYA-54?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Reinhard Sandtner updated TAMAYA-54:
------------------------------------
Attachment: TAMAYA-54.patch
> 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
> 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)