On 6/11/07, Yonik Seeley <[EMAIL PROTECTED]> wrote:
On 6/11/07, Ryan McKinley <[EMAIL PROTECTED]> wrote:
> while (not all components done) {
> for (component : List<Component>) {
> boolean done = component.process(req,rsp);
> }
> }
> - - - - -
> Yonik, what components do you imagine need to run multiple times?
Not sure... a component that needs to run both before and after another phase?
Assuming we aren't creating new instances for each component, the same
can be achieved with a List<SearchComponent>
component.add( c1 );
component.add( c2 );
component.add( c3 );
component.add( c1 );
c1 runs before c2,c3 then again after.
Two components that have dependencies?
If the list order is defined (correctly) that should take care of
dependencies. no?
We can leave it out (but keep it in mind) for the first prototypes.
yes.