[
https://issues.apache.org/jira/browse/TAPESTRY-1022?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Howard M. Lewis Ship updated TAPESTRY-1022:
-------------------------------------------
Fix Version/s: 5.1
> Ordering with pre/post requisites could be simplified, improved
> ---------------------------------------------------------------
>
> Key: TAPESTRY-1022
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1022
> Project: Tapestry
> Issue Type: Improvement
> Components: tapestry-ioc
> Affects Versions: 5.0
> Environment: Tapestry 5 alpha code
> Reporter: Howard M. Lewis Ship
> Priority: Minor
> Fix For: 5.1
>
>
> The Ordering logic is based on pre and post requisites, showing up as @After
> and @Before annotations, and corresponding method parameters.
> I think this is limiting.
> I would like to coalesce @After and @Before into just @Order. The value for
> @Order is a list of constraint strings.
> A constraint string is a type, a colon, and a list of service ids. The type
> can be "before", "after" or "within".
> Example: before:Security,Transaction
> Within will allow orderings to be broken up easily into phases. Once a
> "phase" is defined with before and after constrains, the "within:" constraint
> will order the element after the phase, but before the phase's
> post-requisites.
> Example:
> phase2 --> after:phase1, before:phase3
> object1 --> within:phase2
> object2 --> within:phase2 after:object1
> object1 ends up with the effective constraints after:phase1, before:phase3
> object2 ends up with the effective constraints: after:phase1, object1
> before:phase3
> This works well with the fact that null objects may be contributed into an
> ordering as placeholders (but are editted out of the final list).
> From experience, this is very necessary. The Tapestry 4 enhancement process
> would certainly have benefited from this.
> Finally, Tapestry 5 has reasonable "glob" matching of service ids and the
> list of constraints should work from that. Currently, the code (imported from
> HiveMind) only recognizes a single glob, "*".
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]