You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hivemind.apache.org by Jean-Francois Poilpret <jf...@hcm.vnn.vn> on 2005/02/03 16:08:25 UTC

BuilderFactory and Registry injection

Hello,

For one of my services, I need the HiveMind Registry injected (in this
service I create threads that will access various services, and I want each
thread, before termination, to call Registry.cleanupThread()).

My question is: is it possible to inject the Registry (through the use of
the hivemind.BuilderFactory) into my service.
If yes, how?
If no, what other solution exists (in this case the service should find the
Registry by itself, I do not want to have another part of my system
explicitely calling that service to pass it the HiveMind Registry). Is there
an advised solution?

Thanks in advance.

Cheers.

	Jean-Francois



---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


RE: BuilderFactory and Registry injection

Posted by Jean-Francois Poilpret <jf...@hcm.vnn.vn>.
Thank you very much Howard,

I had completely forgotten about that one. Problem solved.

Cheers

	Jean-Francois

-----Original Message-----
From: Howard Lewis Ship [mailto:hlship@gmail.com] 
Sent: Thursday, February 03, 2005 10:35 PM
To: hivemind-user@jakarta.apache.org
Subject: Re: BuilderFactory and Registry injection

Registry.cleanupThread() is just shorthand for invoking a method on:

http://jakarta.apache.org/hivemind/hivedocs/service/hivemind.ThreadEventNoti
fier.html



On Thu, 3 Feb 2005 22:08:25 +0700, Jean-Francois Poilpret
<jf...@hcm.vnn.vn> wrote:
> Hello,
> 
> For one of my services, I need the HiveMind Registry injected (in this
> service I create threads that will access various services, and I want
each
> thread, before termination, to call Registry.cleanupThread()).
> 
> My question is: is it possible to inject the Registry (through the use of
> the hivemind.BuilderFactory) into my service.
> If yes, how?
> If no, what other solution exists (in this case the service should find
the
> Registry by itself, I do not want to have another part of my system
> explicitely calling that service to pass it the HiveMind Registry). Is
there
> an advised solution?
> 
> Thanks in advance.
> 
> Cheers.
> 
>         Jean-Francois
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
> 
> 


-- 
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Re: BuilderFactory and Registry injection

Posted by Howard Lewis Ship <hl...@gmail.com>.
Registry.cleanupThread() is just shorthand for invoking a method on:

http://jakarta.apache.org/hivemind/hivedocs/service/hivemind.ThreadEventNotifier.html



On Thu, 3 Feb 2005 22:08:25 +0700, Jean-Francois Poilpret
<jf...@hcm.vnn.vn> wrote:
> Hello,
> 
> For one of my services, I need the HiveMind Registry injected (in this
> service I create threads that will access various services, and I want each
> thread, before termination, to call Registry.cleanupThread()).
> 
> My question is: is it possible to inject the Registry (through the use of
> the hivemind.BuilderFactory) into my service.
> If yes, how?
> If no, what other solution exists (in this case the service should find the
> Registry by itself, I do not want to have another part of my system
> explicitely calling that service to pass it the HiveMind Registry). Is there
> an advised solution?
> 
> Thanks in advance.
> 
> Cheers.
> 
>         Jean-Francois
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
> 
> 


-- 
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org