I'm a Java EE nooby developer, i know that service locator pattern is evil and an anti-pattern because it hides classes dependecies, and a JNDI is an implemantation of service locator pattern.
I googled to check that JNDI is an implementation of service locator and i found this response which claims this : Understanding JNDI
Althought i see that JNDI is used in Java EE application, So should i use it or should i avoid it as more as possible?, if JNDI isn't evil then service locator isn't evil?
Aucun commentaire:
Enregistrer un commentaire