[
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]