Thank you Howard!
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
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