I have a method that calls a Util class' static method. Is there a way to mock the return value of this static method so that it always returns a stat ...
I have a method that calls a Util class' static method. Is there a way to mock the return value of this static method so that it always returns a stat ...
I am trying to use this solution (from this post), but I am getting an error during the build process with Quarkus. Custom annotation: The method ...
I am getting the following exception when starting mybatis with java17. java.lang.NoSuchMethodError: 'void org.mybatis.guice.AbstractMyBatisModule.bi ...
Since upgrading to MacOS 12, when I run owlapi-dependent projects that are compiled with Maven, the Guice library which owlapi depends on, throws seve ...
I am trying to figure out at where a Java class implements an interface at an open-source project hosted at GitHub. It is the following function: htt ...
Suppose we have the following 3 (top-level) classes: Then the following code results in an exception (A just-in-time binding to MySecondClass was a ...
I have a dilemma in mind that I can't solve. Should I pass object in method parameter or in parent constructor in this case ? First idea: public cla ...
I want to create two instances with one class by injecting different parameter. For example: I want two Foo instances, one's config is A, another o ...
I am attempting to reproduce Spring Component scan within Guice. I want to use interfaces and have implementations that are annotated with @Singleton ...
Need help with the Dependency injection using guice in Dropwizard. Vendor is enum and VendorHandler is an interface. I have VendorA implementing Ve ...
i use guice in my bukkit plugin and i got that error: Log4j2-TF-1-AsyncLogger[AsyncContext@33909752]-1 ERROR An exception occurred 2022-07-19 13:02:17 ...
I would like to create an object that basically functions as a list, and i will inject it in my services, using Guice Then i am gonna to be using i ...
I am trying to serve my login.jsp page but I always get page not found. this is my ConfigureServlet method: my login page is under : src : main : ...
Is it ok to bind in interface with guice? the error is No implementation for com.tobris.apps.base.service.user.UserService was bound. UserService is ...
I am getting this error when running gradle run : this is a partion of ModuleManager.java where the bug is and this is a portion of viewloader.j ...
I am working on creating a JAVA library that does no use any dependency injection framework. I need to use a class from an external library. The exter ...
Getting error during Dependency Injection , Guice.createInjector ... java.lang.IllegalStateException: Recursive load of: .() ...
New to DI and guice.. I want to use a service (StoreLevelClient) This is a class defined by other team. I inject this class in my main file like thi ...
Here is an example: Is this a restriction or default behavior? Is there any way to use a parameterized constructor instead to build the Dog object? ...
Say I am given a scenario like this: Some of my questions: Why are both constructors called? Is the object classA an instance of ClassA or Su ...