You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Thiago H. de Paula Figueiredo (JIRA)" <ji...@apache.org> on 2014/06/06 16:56:02 UTC
[jira] [Commented] (TAP5-1705) Provide a way to create chains using
ServiceBinder
[ https://issues.apache.org/jira/browse/TAP5-1705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14019899#comment-14019899 ]
Thiago H. de Paula Figueiredo commented on TAP5-1705:
-----------------------------------------------------
Hi, Igor! What about the contributions themselves? In lots of scenarios, they're services themselves.
> Provide a way to create chains using ServiceBinder
> --------------------------------------------------
>
> Key: TAP5-1705
> URL: https://issues.apache.org/jira/browse/TAP5-1705
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-ioc
> Reporter: Igor Drobiazko
> Assignee: Igor Drobiazko
>
> Currently, creating a chain enforces you to write quite a lot of boilerplate code. When using a lot of chains, a module class is full of methods looking similar. The only difference is the service interface.
> public static ServiceInterface buildServiceInterface(ChainBuilder builder, List<ServiceInterface> commands) {
> return builder.build.(ServiceInterface.class, commands);
> }
> It would be nice to create chains inside the bind method:
> public static void bind(ServiceBinder bind) {
> binder.chain(ServiceInterface.class);
> }
--
This message was sent by Atlassian JIRA
(v6.2#6252)