tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Igor Drobiazko (JIRA)" <j...@apache.org>
Subject [jira] Created: (TAP5-889) Provide fluent API for order constraints of contributions
Date Wed, 14 Oct 2009 09:06:31 GMT
Provide fluent API for order constraints of contributions
---------------------------------------------------------

                 Key: TAP5-889
                 URL: https://issues.apache.org/jira/browse/TAP5-889
             Project: Tapestry 5
          Issue Type: Improvement
          Components: tapestry-ioc
    Affects Versions: 5.2.0.0
            Reporter: Igor Drobiazko
            Priority: Minor


It is a pain to create order constraint for contributions because of the hard coded string
"before" and "after".
It would be nice to have a fluent API for this. 

    public static void contributeMasterDispatcher(final OrderedConfiguration<Dispatcher>
configuration) {
	   configuration.addInstance("MyDispatcher", 
                                                             MyDispatcher.class, 
                                                             before("PageRender").after("ComponentEvent").build());
    }

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


Mime
View raw message