You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2010/03/19 00:32:27 UTC

[jira] Created: (TAP5-1062) It would be nice if ServiceBinder had a method that allowed an arbitrary number of standard services to be defined

It would be nice if ServiceBinder had a method that allowed an arbitrary number of standard services to be defined
------------------------------------------------------------------------------------------------------------------

                 Key: TAP5-1062
                 URL: https://issues.apache.org/jira/browse/TAP5-1062
             Project: Tapestry 5
          Issue Type: New Feature
          Components: tapestry-ioc
    Affects Versions: 5.2.0
            Reporter: Howard M. Lewis Ship
            Priority: Minor


A standard service is one where the implementation class is in the same package as the service interface, and is named with an "Impl" suffix.  In other words, instead of:

	public static void bind(ServiceBinder binder) {
		binder.bind(EntitySelectModelSource.class);
		binder.bind(SelectModelResponseGenerator.class);
		binder.bind(AuthenticationService.class);
		binder.bind(TimeService.class);

You could write:

	public static void bind(ServiceBinder binder) {
		binder.bindStandard(EntitySelectModelSource.class, SelectModelResponseGenerator.class, AuthenticationService.class, TimeService.class);


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