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.  
Since you know what you actually are putting in your app, that will never change
until you add more modules.

On Sep 10, 2012, at 10:46 AM, Steve Eynon <steve.ey...@alienfactory.co.uk> 
wrote:

> 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 'ContextNotRequiredWorker'). The dependency has
> been ignored.
> 
> Steve.
> 
> On 10 September 2012 19:37, Robert Zeigler <robert.zeig...@roxanemy.com> 
> wrote:
>> 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 a onActivate() method. The issue
>>> here is that both my 'ContextNotRequiredWorker' and T5's
>>> 'UnclaimedField' want to run last - which isn't allowed.
>>> 
>>>> the trick is to specify multiple constraints
>>> 
>>> I could specify many "after" clauses for T5 workers as you mention,
>>> but that then won't (be guaranteed to) work if some other another
>>> module adds an onActivate() method.
>>> 
>>> Stumpted,
>>> 
>>> Steve.
>>> --
>>> Steve Eynon
>>> -------------------------------
>>> "If at first you don't succeed,
>>>  so much for skydiving!"
>>> 
>>> 
>>> 
>>> On 10 September 2012 10:13, Michael Prescott
>>> <michael.r.presc...@gmail.com> wrote:
>>>> Michael
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to