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



Reply via email to