Re: T5 - Which is the better approach?

2007-05-16 Thread Marcus
Thank you Howard!

Re: T5 - Which is the better approach?

2007-05-15 Thread Howard Lewis Ship
It depends on whether you want to test or not. If you inject UserAuthenticator as a class, you're locked into one implementation of UserAuthenticator. You forgoe the ability to unit test using EasyMock (or jMock) because you aren't coding to an interface, but to a class. Sure, EasyMock has an ex

T5 - Which is the better approach?

2007-05-15 Thread Marcus
Hi, Which is the better approach, or which is the main difference? Have a service to do Login validation, like: in AppModule.java public static IUserAuthenticator buildUserAuthenticator() { return new UserAuthenticatorImpl(); } IUserAuthenticator.java package org.example.hilo