cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Curdt <tcu...@vafer.org>
Subject Re: Why is FlowInterpreter SingleThreaded?
Date Mon, 20 Oct 2003 18:01:52 GMT
>> huh? do you mean there is exactly one interpreter for a specific state 
>> accessable through the factory? please explain :) 
> 
> 
> 
> Let's explain it in (pseudo-)code:
> 
> FlowNode.java:
> 
> // the flow interpreter for this sitemap
> private Interpreter interpreter;
> 
> public void initialize() {
>  IntepreterFactory factory =
>    (InterpreterFactory)this.manager.lookup(InterpreterFactory.ROLE);
>  // flowconfig is the <map:flow> element whose content (<map:script>)
>  // is specific to the particular flow implementation
>  this.interpreter = factory.createIntepreter(flowconfig);
>  this.manager.release(factory);
> }
> 
> 
> The "interpreter" object contains the state (scripts + global scope) 
> that belong to this sitemap.

alright ...that's what I also understood in the first place :)

...but we would bypass the component manager here. The interpreter
would no longer need to be a component... or what do you have in mind?
--
Torsten


Mime
View raw message