Thank you, worked wonderfully.

[EMAIL PROTECTED] wrote:

Hi,

Just have your factory implement
org.apache.hivemind.ServiceImplementationFactory and rename your
getTheObject method to implement createCoreServiceImplementation.

<service-point interface="com.dummy.YourObject" id="YourObject">
<invoke-factory service-id="BigFactory"
model="threaded"/>
</service-point>
<service-point

interface="org.apache.hivemind.ServiceImplementationFactory"
id="BigFactory"
parameters-occurs="none">
<create-instance class="com.dummy.BigFactory"/>
</service-point>

should do it

Best wishes

John

-----Original Message-----
From: Eli Doran [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 25, 2005 1:51 AM
To: [email protected] <mailto:[email protected]>
Subject: hivemind factory service


I'm having a hard time figuring this out and am hoping you may point me
in the right direction.

I have a class say, BigFactory, that produces an object My problem is
how do I make a service-point for the object produced by BigFactory
using the threaded model? I'm thinking I use <invoke-factory
model="threaded" service-id="BigFactoryServicePoint"> somehow. But this
means the BigFactory must implement some interface right? which one?
Create an implementation of the unknown interface that uses BigFactory
internally to create its objects?
I basically need to know how to hook hivemind's creation mechanism to
the factory's getTheObject method.

My goal is to be able to inject the result into some of my
pages/components and have it per request and only when actually
accessed.

~eli



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>



Post generated using Mail2Forum (http://www.mail2forum.com)


Eli Doran wrote:

I'm having a hard time figuring this out and am hoping you may point me in the right direction.

I have a class say, BigFactory, that produces an object My problem is how do I make a service-point for the object produced by BigFactory using the threaded model? I'm thinking I use <invoke-factory model="threaded" service-id="BigFactoryServicePoint"> somehow. But this means the BigFactory must implement some interface right? which one? Create an implementation of the unknown interface that uses BigFactory internally to create its objects? I basically need to know how to hook hivemind's creation mechanism to the factory's getTheObject method.

My goal is to be able to inject the result into some of my pages/components and have it per request and only when actually accessed.

~eli



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to