jsr330 Questions
2
Jersey normally uses HK2 dependency injection, but I would like to use Jersey with Dagger 2. Both Dagger and HK2 implement JSR 330, which I have taken as evidence that this should be possible witho...
Eustache asked 11/3, 2018 at 14:27
11
Solved
From what I can find online, the state of the art for Guice + Jersey integration has stagnated since 2008 when it appears both teams reached an impasse. The crux of the issue is that JAX-RS annotat...
1
Solved
all
I don't know what's the difference between Inject and Provider in JSR-330.
I am using google guice, and everyday using @Inject, and I know in JSR-330, it has Provider<T>.
My question i...
Orthoepy asked 2/11, 2016 at 16:17
1
Solved
I've got some strange behavior in working of @Inject in Spring.
This example works well:
@Controller
@RequestMapping("/")
public class HomeController {
@Autowired
private SomeBean someBean;
@R...
Culliton asked 12/9, 2016 at 7:47
2
Solved
Per Spring 3 document, The IoC container, the @Named annotation is a standard equivalent to the @Component annotation.
Since @Repository, @Service, and @Controller are all @Component, I tried to u...
Orthodoxy asked 30/8, 2013 at 20:6
3
One of the beauties with Java EE 6 is the new dependency injection framework - CDI with the Weld reference implementation - which has prompted us to start migrating internally to JSR-330 in an impl...
Fokker asked 31/1, 2011 at 11:13
1
I need to do some processing to determine the dependencies of JSR-330 annotated classes, using reflection.
I am fully aware of all JSR-330 compliant IoC containers, like Spring, Guice or PicoConta...
Gomes asked 12/3, 2012 at 18:37
1
Solved
JSR-330 specifies certain naming conventions in terms of packages, for example:
javax.inject.Inject
javax.inject.Scope
Guice is the Reference Implementation of JSR-330. However, when using it, y...
Spatola asked 23/11, 2011 at 13:36
1
Solved
Or, can I bound a custom implementation of org.springframework.beans.factory.config.Scope interface with a specific @Scope-annotated annotation?
For example, I have customized a new scope type:
@...
5
Solved
We have a situation where we provide an external configuration in form of a Map to our running programs. I have found that JSR-330 Dependency Injection gives a much cleaner way to use that configur...
Yoghurt asked 3/11, 2010 at 13:59
1
Solved
We have decided to use Dependency Injection with JSR-330 annotations for our future modularization efforts, and have been very pleased with the first deliverable based on Guice 2 SVN.
Now we need ...
1
© 2022 - 2024 — McMap. All rights reserved.