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)" <de...@tapestry.apache.org> on 2007/05/13 20:31:15 UTC

[jira] Closed: (TAPESTRY-1443) org.apache.tapestry.annotations.Service annotation is ignored

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

Howard M. Lewis Ship closed TAPESTRY-1443.
------------------------------------------

    Resolution: Fixed

> org.apache.tapestry.annotations.Service annotation is ignored
> -------------------------------------------------------------
>
>                 Key: TAPESTRY-1443
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1443
>             Project: Tapestry
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0.4
>            Reporter: Ivan Dubrov
>         Assigned To: Howard M. Lewis Ship
>             Fix For: 5.0.5
>
>
> org.apache.tapestry.annotations.Service annotation does not work - it does not help to match service by id (for example, to resolve ambiguity). I think, additional ObjectProvider is required (that is executed before "Alias" object provider) with provide method like the following:
> public <T> T provide(Class<T> objectType, AnnotationProvider annotationProvider, ObjectLocator locator) {
>     Service service = annotationProvider.getAnnotation(Service.class);
>     if (service == null) return null;
>     String expanded = _symbolSource.expandSymbols(service.value());
>     return locator.getService(expanded, objectType);
> }

-- 
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