How to create an object from another area

I have an object in Guice with a Singleton scope. In the method, f()

I want to create a new object, but let Guice do the injection. I think this is not a good practice for injector passing.
So how can I get a new instance of the "Guicy" object?


source to share

1 answer

As suggested above, the ISP is probably the way to do it. this is also mentioned in this question .



All Articles