Glen,

It really depends on whether or not multiple services implementing the same
interface will be present in your registry. I personally, always specify a
service name because it seems like I end up reusing an interface with a new
implementation or an implementation with a different configuration, either
of which has a new name.

Richard

-----Original Message-----
From: Glen Stampoultzis [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 15, 2005 4:55 PM
To: [email protected]
Subject: Calls to registry.getService()

I'm wondering which is better practice - calling
registry.getService(class) or registry.getService(serviceName, class)
?

---------------------------------------------------------------------
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]

Reply via email to