Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implemented the custom dependency injection #698

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ivan0dyatlyukkk
Copy link

No description provided.

Copy link

@satori11111 satori11111 left a comment

Choose a reason for hiding this comment

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

Incredible solution!!!


public static Injector getInjector() {
return injector;
}

public Object getInstance(Class<?> interfaceClazz) {
return null;
Class<?> implementedClazz = findImplementation(interfaceClazz);
ifConsistComponentAnnotation(implementedClazz);

Choose a reason for hiding this comment

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

Optional: I think consist is a bad word for this method, maybe you mean contains, or you can use present

Copy link

@Vasul-Pankiv Vasul-Pankiv left a comment

Choose a reason for hiding this comment

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

Great solution!

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.

3 participants