'Can we implement a Java library by using Java Frameworks like Guice or Spring?
I am creating a new java library and will make the package as a jar file and have another JAVA application that can use it in terms of a JAVA library. So, is it possible that I can use Java frameworks like Spring, Guice in the library.
If yes, then how and where to initiate the ApplicationContext in case of spring or Injector in case of Guice in the library so that the configuration file can be passed into it. Because without it, the DI and IOC Will not work at all.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|