You might want to create a configuration point to "register" your handler objects with the HandlerFactory (and give them an id or name).
On 11/7/06, Simon Willnauer <[EMAIL PROTECTED]> wrote:
Yes! simon On 11/7/06, Achim Hügen <[EMAIL PROTECTED]> wrote: > Do the getHandlerX methods create new instances on each call? > > Achim > > Simon Willnauer schrieb: > > Hello Hiveminds, > > I do have a servlet which forwards the reqeusts to a specific handler > > which implements a simple interface with one method "public void > > handleRequest(request, response)" > > The actual implementation is accessed via a Factory definded as a > > hivemind service. The servlet gets the registry via the HivemindFilter > > and requests the HandlerFactory. The Factory has several methodes for > > each specific handler getHandlerX getHandlerY ... > > I configured the handler using a org.apache.hivemind.lib.BeanFactory > > but this approach does not work because I need some other service to > > be injected to the handler. the BeanFactory does not support any > > injection as it creates plain beans by invoking the constructor eg. > > some reflection methodes. > > > > I'm actually looking for a nice approach to achive that goal. I would > > appreciate any ideas / help. > > > > best regards simon > > > > > >
