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

Alfie Kirkpatrick resolved TAP5-780.
------------------------------------

       Resolution: Not A Problem
    Fix Version/s: 5.1

I bumped into Howard and he pointed out that we can simply use ServiceResources 
in a builder method to autobuild the service.

    public static MyService buildMyService(ServiceResources resources, 
@Symbol("test") String classname) throws ClassNotFoundException {
        Class<MyService> c=(Class<MyService>) Class.forName(classname);
        return resources.autobuild(c);
    }

It's too simple!

> Provide a way to bind service based on impl classname from symbol
> -----------------------------------------------------------------
>
>                 Key: TAP5-780
>                 URL: https://issues.apache.org/jira/browse/TAP5-780
>             Project: Tapestry 5
>          Issue Type: New Feature
>          Components: tapestry-ioc
>    Affects Versions: 5.2
>            Reporter: Alfie Kirkpatrick
>             Fix For: 5.1
>
>         Attachments: tapestry-ioc.patch
>
>
> Discussed on mailing list and have implemented in the attached patch. If this 
> is an acceptable approach and could be included I can work on the minor TODO 
> items in the code and associated tests. It seems like a reasonable and low 
> impact enhancement. Very little/no risk to other code.

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

Reply via email to