Chris Hostetter wrote:
: What's the canonical way to pass an update request to another handler? I'm
: implementing a handler that has to dispatch its result to different update
: handlers based on its internal processing.
I've always written my delegating RequestHandlers so that they take in the
names (or paths) of the handlers they are going to delegate to as init
params.
Yeah, this is where I started ...
the other approach i've seen is to make the delegating handler instantiate
the sub-handlers directly so that it can have the exact instnaces it wants
configured the way it wants them.
... and this is where I ended now :)
It really comes down to what your goal is: if you wnat your code to be
totlaly in conrol instantiate new instances. if you wnat the person
creatining the solrconfig.xml to be in control let them tell you the name
of a handler (with it's defaults/invariants configured i na way you can't
control) to delegate to.
Indeed - thanks.
--
Best regards,
Andrzej Bialecki <><
___. ___ ___ ___ _ _ __________________________________
[__ || __|__/|__||\/| Information Retrieval, Semantic Web
___|||__|| \| || | Embedded Unix, System Integration
http://www.sigram.com Contact: info at sigram dot com