Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
DIP Problem
public class D_DependencyInversionProblem {
@AllArgsConstructor
private static class AuthenticateLogin {
public boolean login(User user){
AuthenticationLinkedin authentication = new AuthenticationLinkedin();
return authentication.login(user);
}
}
private static class AuthenticationLinkedin {
public boolean login(User user) {
//autêntica o login com o Oauth Linkedin.
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.