Hi All,
I know this discussion is not new - just wondering what the advantage is with the first approach?
Pretty soon, all containers will allow you to specify an "alias". That way you can look it up like this:
Service s = (Service) m_manager.lookup("service");
The container can read the meta information properly so that it knows how to map the short name "service" to the actual component type that is needed.
If we used the Class object, we run into two problems:
1) We can't use the alias 2) Classloader issues (not all containers are created equally)
--
"They that give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety."
- Benjamin Franklin
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
