Re: Ioc Ordering Contraints

2012-09-10 Thread Muhammad Gelbana
*@Michael* Constraints are very loose; after means 'somewhere after' rather than 'immediately after' If that was the case, why did cause an issue if it was so loose ? Is this one special case (i.e. after:***) ? What's the advantage of having this behavior over having it strict as being

Re: Ioc Ordering Contraints

2012-09-10 Thread Lance Java
this message in context: http://tapestry.1045711.n5.nabble.com/Ioc-Ordering-Contraints-tp5716154p5716159.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr

Re: Ioc Ordering Contraints

2012-09-10 Thread Robert Zeigler
Hi Steve, have you tried specifying after:*, before:UnclaimedField? Robert On Sep 9, 2012, at 9/99:33 PM , Steve Eynon wrote: Hi Michael, just specify as many as are important to you. I kinda want mine to run last, because I need make sure no other workers (in T5 or other modules) add

Re: Ioc Ordering Contraints

2012-09-10 Thread Steve Eynon
Hi Robert, I had previously tried before:UnclaimedField, after:* - but doesn't matter which way round the constraints go, I still get: Unable to add 'ContextNotRequiredWorker' as a dependency of 'UnclaimedField', as that forms a dependency cycle ('UnclaimedField' depends on itself via

Re: Ioc Ordering Contraints

2012-09-10 Thread Lenny Primak
Hey, Steve, I think you are looking for the ultimate solution here that doesn't exist. I don't think you can make it work in all cases and all configurations. I think you need to find the last service that's really there and the one you need to be after, and put that in the constraints.

Re: Ioc Ordering Contraints

2012-09-10 Thread Steve Eynon
I think you are looking for the ultimate solution here that doesn't exist. Yeah, maybe. Sigh. :`( I guess I was jus' hoping I'd overlooked something. Nevermind, I'll live! :) Cheers to all for the suggestions. Steve. On 10 September 2012 23:27, Lenny Primak lpri...@hope.nyc.ny.us wrote:

Re: Ioc Ordering Contraints

2012-09-10 Thread trsvax
I'd try creating a dummy worker called beforeUnclaimedField and make it before:UnclaimedField then change yours to after:beforeUnclaimedField -- View this message in context: http://tapestry.1045711.n5.nabble.com/Ioc-Ordering-Contraints-tp5716154p5716171.html Sent from the Tapestry

Re: Ioc Ordering Contraints

2012-09-10 Thread Howard Lewis Ship
, trsvax trs...@gmail.com wrote: I'd try creating a dummy worker called beforeUnclaimedField and make it before:UnclaimedField then change yours to after:beforeUnclaimedField -- View this message in context: http://tapestry.1045711.n5.nabble.com/Ioc-Ordering-Contraints-tp5716154p5716171

Re: Ioc Ordering Contraints

2012-09-10 Thread Lenny Primak
beforeUnclaimedField and make it before:UnclaimedField then change yours to after:beforeUnclaimedField -- View this message in context: http://tapestry.1045711.n5.nabble.com/Ioc-Ordering-Contraints-tp5716154p5716171.html Sent from the Tapestry - User mailing list archive

Re: Ioc Ordering Contraints

2012-09-10 Thread trsvax
goes away. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Ioc-Ordering-Contraints-tp5716154p5716174.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users

Ioc Ordering Contraints

2012-09-09 Thread Steve Eynon
Hi, I have a transform worker which I want to run after everything else (it checks for the existence of an onActive() method) so I have the following Module method, note the after:* @Contribute(ComponentClassTransformWorker2.class) @Primary public static void provideTransformWorkers(

Re: Ioc Ordering Contraints

2012-09-09 Thread Michael Prescott
Apparently, the trick is to specify multiple constraints. Constraints are very loose; after means 'somewhere after' rather than 'immediately after', so just specify as many as are important to you. Someone more informed can weigh in whether you can mix specific constraints with wildcards. In

Re: Ioc Ordering Contraints

2012-09-09 Thread Steve Eynon
Hi Michael, just specify as many as are important to you. I kinda want mine to run last, because I need make sure no other workers (in T5 or other modules) add a onActivate() method. The issue here is that both my 'ContextNotRequiredWorker' and T5's 'UnclaimedField' want to run last - which