hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Carman" <ja...@carmanconsulting.com>
Subject Re: Hivemind best practice
Date Tue, 07 Nov 2006 14:27:34 GMT
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 <simon.willnauer@googlemail.com> wrote:
> Yes!
>
> simon
>
> On 11/7/06, Achim Hügen <achim.huegen@gmx.de> 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
> > >
> > >
> >
> >
>

Mime
View raw message