You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Paul Cooley (JIRA)" <de...@tapestry.apache.org> on 2007/10/23 02:03:50 UTC

[jira] Updated: (TAPESTRY-1810) ServiceBinder.bind() with an interface should check to see if there's an Impl class and bind to that.

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

Paul Cooley updated TAPESTRY-1810:
----------------------------------

    Attachment: jira1810.zip

Created test module and test to prove the ServiceBinderImpl checks to see if the class passed into the ServiceBinder.bind(Class<T>) method is an interface.  If so, then the binder checks to see if a class exists in the same package with "Impl" as its suffix.

> ServiceBinder.bind() with an interface should check to see if there's an Impl class and bind to that.
> -----------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-1810
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1810
>             Project: Tapestry
>          Issue Type: New Feature
>          Components: tapestry-ioc
>    Affects Versions: 5.0.5
>            Reporter: Howard M. Lewis Ship
>         Attachments: jira1810.zip
>
>
> In a module bind() method, if you invoke ServiceBinder.bind() and pass an interface, the code should check to see if there's a class in the same package named "XYZImpl" (for interface XYZ).  If so, it should bind that Impl class as the implementation class.  Convention over configuration, even in the small details.

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