: 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.

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.

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.


-Hoss

Reply via email to