You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I look through the implementation and noticed, that method findScopeAnnotation(Errors, Class) just checks whether the provided class was marked by @Singleton annotation. The problem is that I can't mark by this annotation third party classes.
The text was updated successfully, but these errors were encountered:
That it by design,
Singletons must be registered in a binder, as either a plain or eager singleton,
Specifying @provides does not give you this definition that guice provides above other D.Is
Adding provides and registering a bind In a module will make it a lazy singleton, using .asEagerSingleton for the other.....
Hey @groov1kk@GedMarc , letting you know since you may be targeting Guice 7.0.0, about the new Micronaut Guice project, that depending on your usecase could be a useful replacement: micronaut-projects/micronaut-guice#9
Hello
Annotations
@Provides
and@Singleton
do not work together if I try to return class type instead of interface:I look through the implementation and noticed, that method
findScopeAnnotation(Errors, Class)
just checks whether the provided class was marked by@Singleton
annotation. The problem is that I can't mark by this annotation third party classes.The text was updated successfully, but these errors were encountered: