Using a configuration file for spring application context
I am converting a Griffon 1.x application to Griffon 2.x. The former used spring for dependency injection, and I would like to reuse its spring configuration file(s) for the latter. Is that possible?
I see that there is something called spring-guice (https://github.com/spring-projects/spring-guice ). How might that fit into the Griffon 2.x framework (if at all)? In one
example for spring-guice, it programmatically creates a module from a spring application context. That doesn’t really fit into the way Griffon discovers modules and subsequently creates a single injector:
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ApplicationConfiguration.class);
Injector injector = Guice.createInjector(new SpringModule(context), new MyModule());
Service service = injector.getInstance(Service.class);
This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity
to which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this e-mail is
prohibited. If you have received this e-mail in error, please notify the
sender by replying to this message and delete this e-mail immediately.