RE: Hivemind: Difference between invoke-factory and create-instance

2006-07-24 Thread James Carman
Kris,

The create-instance is a very simplistic mechanism.  All it does is
instantiate that class.  It does no configuration or wiring of the
instantiated object.  If you want dependency injection, use invoke-factory
instead, which by default uses the BuilderFactory to instantiate and
configure your implementation object.

James

-Original Message-
From: Kristian Marinkovic [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 24, 2006 10:44 AM
To: Tapestry users
Subject: Hivemind: Difference between invoke-factory and create-instance


Hi,

can somebody explain to me the difference between
invoke-factory and create-instance? Is there any
difference in behaviour as long as the class referenced
by invoke-factory does not implement
ServiceImplementationFactory?

Or am i completely wrong :) I'm not sure how to use them.

Thanks in advance

g,
kris


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



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



RE: RE: Hivemind: Difference between invoke-factory and create-instance

2006-07-24 Thread Kristian Marinkovic
Hi James,

i did a few tests and i understand now :)

Thank you!

g,
kris


   
 James Carman
 [EMAIL PROTECTED] 
 ulting.comAn 
'Tapestry users' 
 24.07.2006 16:50   users@tapestry.apache.org
 Kopie 
   
  Bitte antwortenThema 
an  RE: Hivemind: Difference between   
 Tapestry users   invoke-factory and   
 [EMAIL PROTECTED]  create-instance  
pache.org 
   
   
   
   
   




Kris,

The create-instance is a very simplistic mechanism.  All it does is
instantiate that class.  It does no configuration or wiring of the
instantiated object.  If you want dependency injection, use
invoke-factory
instead, which by default uses the BuilderFactory to instantiate and
configure your implementation object.

James

-Original Message-
From: Kristian Marinkovic [mailto:[EMAIL PROTECTED]
Sent: Monday, July 24, 2006 10:44 AM
To: Tapestry users
Subject: Hivemind: Difference between invoke-factory and
create-instance


Hi,

can somebody explain to me the difference between
invoke-factory and create-instance? Is there any
difference in behaviour as long as the class referenced
by invoke-factory does not implement
ServiceImplementationFactory?

Or am i completely wrong :) I'm not sure how to use them.

Thanks in advance

g,
kris


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



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




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