Re: Equivalent to BeanFactoryAware, and BenNameAware?

2021-11-21 Thread Piotr Morgwai Kotarbinski
Hi, I'm *almost* sure that there's no equivalent in Guice as these mechanisms promote bad design: objects should rather be initialized in their constructors and regarding `BeanNameAware` even its javadoc says "Note that it is not usually recommended that an object depends on its bean name, as t

Equivalent to BeanFactoryAware, and BenNameAware?

2021-11-21 Thread Jochen Wiedmann
Hi, I am investigating, what the efforts would be to migrate an existing application from Spring Beans to Guice. One of the problems, that I am facing is this: In Spring Beans, there are two special interfaces, called BeanFactoryAware, and BeanNameAware. The first one is used to a) semi-injec