[
https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jochen Kemnade updated TAP5-1321:
---------------------------------
This issue has been last updated about 1.5 years ago and has no information
about the versions that are affected. That makes it hard to determine whether
it is still relevant.
If the issue still persists with the current stable version (5.3.7) or the most
recent development preview of Tapestry (5.4-beta-6), both of which are
available from Maven Central, please update it as soon as possible, adding the
respective version(s) to the issue's "Affects Version/s".
> Add getService(Class serviceInterface, Class... markers) to ObjectLocator
> interface
> -----------------------------------------------------------------------------------
>
> Key: TAP5-1321
> URL: https://issues.apache.org/jira/browse/TAP5-1321
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-ioc
> Reporter: Tom van Dijk
> Assignee: Igor Drobiazko
> Attachments:
> 0001-TAP5-1321-Add-getService-with-markers-to-ObjectLocat.patch
>
>
> It is useful to be able to get a service using just the interface class and
> the markers.
> Attached patch will add the method "<T> T getService(Class<T> interface,
> Class... markers)" to the ObjectLocator interface. In order to allow using
> the "@Local" marker, callers can also use the module builder class (e.g.
> MyModule.class") as a marker.
> The patch also adds the method "<T> T getService(Class<T> interface, Module
> localModule, Class... markers)" to the InternalRegistry interface, which is
> used by ObjectLocatorImpl (it has access to the internal Module object)
--
This message was sent by Atlassian JIRA
(v6.2#6252)