Hi All,
Hope all is well!
One questions - I think I remember reading about this a while back on the
lists but some quick searches couldn't find it.
Our current ROLE convention is to name the class file to be looked up
using the following style:
interface Service {
String ROLE = Service.class.getName();
// methods
}
Service s = (Service) m_manager.lookup(Service.ROLE);
Since ROLE is the classes FQN, why not just specify the Class object itself
like:
interface Service {
// methods
}
Service s = (Service) m_manager.lookup(Service.class);
I know this discussion is not new - just wondering what the advantage is
with the first approach?
Cheers,
Marcus
--
.....
,,$$$$$$$$$, Marcus Crafter
;$' '$$$$: Computer Systems Engineer
$: $$$$: ManageSoft GmbH
$ o_)$$$: 82-84 Mainzer Landstrasse
;$, _/\ &&:' 60327 Frankfurt Germany
' /( &&&
\_&&&&'
&&&&.
&&&&&&&:
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]