You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Tom van Dijk (JIRA)" <ji...@apache.org> on 2010/10/22 21:28:17 UTC

[jira] Created: (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

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
         Attachments: getServiceWithMarkers.diff

For the implementation of tapestry-hibernate with multiple databases I need to be able to get a service by interface+markers instead of service id. 

Attached patch will add the method "<T> T getService(Class<T> interface, Class... markers)" to the ObjectLocator interface and various implementations. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Tom van Dijk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom van Dijk updated TAP5-1321:
-------------------------------

    Attachment: getService-with-markers.patch

> 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
>         Attachments: getService-with-markers.patch
>
>
> For the implementation of tapestry-hibernate with multiple databases I need to be able to get a service by interface+markers instead of service id. 
> Attached patch will add the method "<T> T getService(Class<T> interface, Class... markers)" to the ObjectLocator interface and various implementations. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Updated: (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Tom van Dijk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom van Dijk updated TAP5-1321:
-------------------------------

    Attachment: getServiceWithMarkers.diff

> 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
>         Attachments: getServiceWithMarkers.diff
>
>
> For the implementation of tapestry-hibernate with multiple databases I need to be able to get a service by interface+markers instead of service id. 
> Attached patch will add the method "<T> T getService(Class<T> interface, Class... markers)" to the ObjectLocator interface and various implementations. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Tom van Dijk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom van Dijk updated TAP5-1321:
-------------------------------

    Attachment:     (was: getService-with-markers.patch)

> 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
>         Attachments: getService-with-markers.patch
>
>
> For the implementation of tapestry-hibernate with multiple databases I need to be able to get a service by interface+markers instead of service id. 
> Attached patch will add the method "<T> T getService(Class<T> interface, Class... markers)" to the ObjectLocator interface and various implementations. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Tom van Dijk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom van Dijk updated TAP5-1321:
-------------------------------

    Attachment:     (was: 0001-TAP5-1321-Add-getService-with-markers-to-ObjectLocat.patch)

> 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
>
> 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 is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Tom van Dijk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom van Dijk updated TAP5-1321:
-------------------------------

    Attachment:     (was: getService-with-markers.patch)

> 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
>         Attachments: getService-with-markers.patch
>
>
> For the implementation of tapestry-hibernate with multiple databases I need to be able to get a service by interface+markers instead of service id. 
> Attached patch will add the method "<T> T getService(Class<T> interface, Class... markers)" to the ObjectLocator interface and various implementations. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Tom van Dijk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom van Dijk updated TAP5-1321:
-------------------------------

    Attachment:     (was: getService-with-markers.patch)

> 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
>
> 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 is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Tom van Dijk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom van Dijk updated TAP5-1321:
-------------------------------

    Attachment:     (was: getService-with-markers.patch)

> 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
>         Attachments: getService-with-markers.patch
>
>
> For the implementation of tapestry-hibernate with multiple databases I need to be able to get a service by interface+markers instead of service id. 
> Attached patch will add the method "<T> T getService(Class<T> interface, Class... markers)" to the ObjectLocator interface and various implementations. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Tom van Dijk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom van Dijk updated TAP5-1321:
-------------------------------

    Attachment:     (was: 0001-TAP5-1321-Add-getService-with-markers-to-ObjectLocat.patch)

> 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
>
> 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 is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Igor Drobiazko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Drobiazko reassigned TAP5-1321:
------------------------------------

    Assignee: Igor Drobiazko

> 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: getService-with-markers.patch
>
>
> For the implementation of tapestry-hibernate with multiple databases I need to be able to get a service by interface+markers instead of service id. 
> Attached patch will add the method "<T> T getService(Class<T> interface, Class... markers)" to the ObjectLocator interface and various implementations. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Updated: (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Tom van Dijk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom van Dijk updated TAP5-1321:
-------------------------------

    Attachment:     (was: getServiceWithMarkers.diff)

> 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
>         Attachments: Added-getService-with-markers-to-ObjectLocator.patch
>
>
> For the implementation of tapestry-hibernate with multiple databases I need to be able to get a service by interface+markers instead of service id. 
> Attached patch will add the method "<T> T getService(Class<T> interface, Class... markers)" to the ObjectLocator interface and various implementations. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Tom van Dijk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom van Dijk updated TAP5-1321:
-------------------------------

    Description: 
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)

  was:
For the implementation of tapestry-hibernate with multiple databases I need to be able to get a service by interface+markers instead of service id. 

Attached patch will add the method "<T> T getService(Class<T> interface, Class... markers)" to the ObjectLocator interface and various implementations. 


> 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
>
> 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 is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Tom van Dijk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom van Dijk updated TAP5-1321:
-------------------------------

    Attachment:     (was: getService-with-markers.patch)

> 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
>
> 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 is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Tom van Dijk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom van Dijk updated TAP5-1321:
-------------------------------

    Attachment:     (was: 0001-TAP5-1321-Add-getService-with-markers-to-ObjectLocat.patch)

> 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
>
> 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 is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Tom van Dijk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom van Dijk updated TAP5-1321:
-------------------------------

    Attachment:     (was: getService-with-markers.patch)

> 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
>         Attachments: getService-with-markers.patch
>
>
> For the implementation of tapestry-hibernate with multiple databases I need to be able to get a service by interface+markers instead of service id. 
> Attached patch will add the method "<T> T getService(Class<T> interface, Class... markers)" to the ObjectLocator interface and various implementations. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Updated: (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Tom van Dijk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom van Dijk updated TAP5-1321:
-------------------------------

    Attachment: getService-with-markers.patch

> 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
>         Attachments: getService-with-markers.patch
>
>
> For the implementation of tapestry-hibernate with multiple databases I need to be able to get a service by interface+markers instead of service id. 
> Attached patch will add the method "<T> T getService(Class<T> interface, Class... markers)" to the ObjectLocator interface and various implementations. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Updated: (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Tom van Dijk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom van Dijk updated TAP5-1321:
-------------------------------

    Attachment:     (was: Added-getService-with-markers-to-ObjectLocator.patch)

> 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
>         Attachments: getService-with-markers.patch
>
>
> For the implementation of tapestry-hibernate with multiple databases I need to be able to get a service by interface+markers instead of service id. 
> Attached patch will add the method "<T> T getService(Class<T> interface, Class... markers)" to the ObjectLocator interface and various implementations. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Tom van Dijk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom van Dijk updated TAP5-1321:
-------------------------------

    Attachment:     (was: 0001-TAP5-1321-Add-getService-with-markers-to-ObjectLocat.patch)

> 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
>
> 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 is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Igor Drobiazko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Drobiazko reassigned TAP5-1321:
------------------------------------

    Assignee: Igor Drobiazko

> 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: getService-with-markers.patch
>
>
> For the implementation of tapestry-hibernate with multiple databases I need to be able to get a service by interface+markers instead of service id. 
> Attached patch will add the method "<T> T getService(Class<T> interface, Class... markers)" to the ObjectLocator interface and various implementations. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Updated: (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Tom van Dijk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom van Dijk updated TAP5-1321:
-------------------------------

    Attachment: getService-with-markers.patch

> 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
>         Attachments: getService-with-markers.patch
>
>
> For the implementation of tapestry-hibernate with multiple databases I need to be able to get a service by interface+markers instead of service id. 
> Attached patch will add the method "<T> T getService(Class<T> interface, Class... markers)" to the ObjectLocator interface and various implementations. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Tom van Dijk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom van Dijk updated TAP5-1321:
-------------------------------

    Attachment: 0001-TAP5-1321-Add-getService-with-markers-to-ObjectLocat.patch

> 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 is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Tom van Dijk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom van Dijk updated TAP5-1321:
-------------------------------

    Attachment: getService-with-markers.patch

> 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
>         Attachments: getService-with-markers.patch
>
>
> For the implementation of tapestry-hibernate with multiple databases I need to be able to get a service by interface+markers instead of service id. 
> Attached patch will add the method "<T> T getService(Class<T> interface, Class... markers)" to the ObjectLocator interface and various implementations. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Updated: (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Tom van Dijk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom van Dijk updated TAP5-1321:
-------------------------------

    Attachment: getService-with-markers.patch

> 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
>         Attachments: getService-with-markers.patch
>
>
> For the implementation of tapestry-hibernate with multiple databases I need to be able to get a service by interface+markers instead of service id. 
> Attached patch will add the method "<T> T getService(Class<T> interface, Class... markers)" to the ObjectLocator interface and various implementations. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Tom van Dijk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom van Dijk updated TAP5-1321:
-------------------------------

    Attachment: 0001-TAP5-1321-Add-getService-with-markers-to-ObjectLocat.patch

> 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
>
> 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 is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Tom van Dijk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom van Dijk updated TAP5-1321:
-------------------------------

    Attachment: 0001-TAP5-1321-Add-getService-with-markers-to-ObjectLocat.patch

> 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 is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Tom van Dijk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom van Dijk updated TAP5-1321:
-------------------------------

    Attachment:     (was: Added-getService-with-markers-to-ObjectLocator.patch)

> 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
>         Attachments: getService-with-markers.patch
>
>
> For the implementation of tapestry-hibernate with multiple databases I need to be able to get a service by interface+markers instead of service id. 
> Attached patch will add the method "<T> T getService(Class<T> interface, Class... markers)" to the ObjectLocator interface and various implementations. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Tom van Dijk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom van Dijk updated TAP5-1321:
-------------------------------

    Attachment: 0001-TAP5-1321-Add-getService-with-markers-to-ObjectLocat.patch

> 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 is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Tom van Dijk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom van Dijk updated TAP5-1321:
-------------------------------

    Attachment: Added-getService-with-markers-to-ObjectLocator.patch

> 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
>         Attachments: Added-getService-with-markers-to-ObjectLocator.patch
>
>
> For the implementation of tapestry-hibernate with multiple databases I need to be able to get a service by interface+markers instead of service id. 
> Attached patch will add the method "<T> T getService(Class<T> interface, Class... markers)" to the ObjectLocator interface and various implementations. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Updated: (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Tom van Dijk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom van Dijk updated TAP5-1321:
-------------------------------

    Attachment: getServiceWithMarkers.diff

> 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
>         Attachments: getServiceWithMarkers.diff
>
>
> For the implementation of tapestry-hibernate with multiple databases I need to be able to get a service by interface+markers instead of service id. 
> Attached patch will add the method "<T> T getService(Class<T> interface, Class... markers)" to the ObjectLocator interface and various implementations. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Tom van Dijk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom van Dijk updated TAP5-1321:
-------------------------------

    Attachment: Added-getService-with-markers-to-ObjectLocator.patch

> 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
>         Attachments: Added-getService-with-markers-to-ObjectLocator.patch
>
>
> For the implementation of tapestry-hibernate with multiple databases I need to be able to get a service by interface+markers instead of service id. 
> Attached patch will add the method "<T> T getService(Class<T> interface, Class... markers)" to the ObjectLocator interface and various implementations. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Tom van Dijk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom van Dijk updated TAP5-1321:
-------------------------------

    Attachment: 0001-TAP5-1321-Add-getService-with-markers-to-ObjectLocat.patch

> 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 is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Tom van Dijk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom van Dijk updated TAP5-1321:
-------------------------------

    Description: 
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)

  was:
For the implementation of tapestry-hibernate with multiple databases I need to be able to get a service by interface+markers instead of service id. 

Attached patch will add the method "<T> T getService(Class<T> interface, Class... markers)" to the ObjectLocator interface and various implementations. 


> 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
>
> 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 is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Tom van Dijk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom van Dijk updated TAP5-1321:
-------------------------------

    Attachment: getService-with-markers.patch

> 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
>         Attachments: getService-with-markers.patch
>
>
> For the implementation of tapestry-hibernate with multiple databases I need to be able to get a service by interface+markers instead of service id. 
> Attached patch will add the method "<T> T getService(Class<T> interface, Class... markers)" to the ObjectLocator interface and various implementations. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Updated: (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Tom van Dijk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom van Dijk updated TAP5-1321:
-------------------------------

    Attachment:     (was: getServiceWithMarkers.diff)

> 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
>         Attachments: Added-getService-with-markers-to-ObjectLocator.patch
>
>
> For the implementation of tapestry-hibernate with multiple databases I need to be able to get a service by interface+markers instead of service id. 
> Attached patch will add the method "<T> T getService(Class<T> interface, Class... markers)" to the ObjectLocator interface and various implementations. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (TAP5-1321) Add getService(Class serviceInterface, Class... markers) to ObjectLocator interface

Posted by "Tom van Dijk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom van Dijk updated TAP5-1321:
-------------------------------

    Attachment: 0001-TAP5-1321-Add-getService-with-markers-to-ObjectLocat.patch

> 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
>
> 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 is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira