Skip to content

Conversation

OctaviPascual
Copy link

@OctaviPascual OctaviPascual commented Nov 8, 2020

[WIP]
I'm using this branch to implement each of the features of each step.

import java.util.Objects;

public abstract class EmailValueObject {
private static final EmailValidator emailValidator = new EmailValidator();
Copy link
Author

@OctaviPascual OctaviPascual Nov 10, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a better approach would be to create an EmailValidator interface to not contaminate our domain with this dependency, but I tried to do it and I didn't manage to inject the implementation into this abstract class. Is it possible to do it?

@OctaviPascual OctaviPascual marked this pull request as draft November 11, 2020 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant