Pardon my language if question is not clear. I want to use JSR 330 annotations. And I want to be able switch my DI provider. At present my application has to to know at some point that it has to use spring or google-guice. Is there any way I can avoid this.
Right now I've to call :
ApplicationContext ctx = new AnnotationConfigApplicationContext(
"com.package1", "com.package2");
to get the app context to get the beans. My understanding is that for google-guice i'll have use google-guice specific code.
Is my understanding correct or I totally missed something.