java interface for JSR-330 standard. It is part of javaee-6
Questions tagged [javax-inject]
5 questions
2
votes
1 answer
Context & Dependency Injection : How to inject implementation of an interface?
I am at beginner stage of CDI and trying to inject the implementation of interface using field injection as below:
AutoService.java
package com.interfaces;
public interface AutoService {
void getService();
}
BMWAutoService.java
package…

jCoder
- 41
- 2
- 8
2
votes
2 answers
Create a session scope bean in spring with javax annotations
I am using spring 4, with javax annotations (JSR-330). In maven
javax.inject
javax.inject
1
So I use @Named, @Inject and…

Alireza Fattahi
- 42,517
- 14
- 123
- 173
1
vote
1 answer
Autowiring a javax.inject.provider in a unit-test with spring context
While playing around with the javax provider, I have created a spring configuration file with the following two Beans:
@Bean
Provider

Turtle
- 86
- 8
1
vote
0 answers
Is it valid to publish an Android library with javax.inject as a dependency?
I'm writing an Android library that depends on a JVM library that depends on javax.inject. The default Android linter appears to disallow javax.inject as a (transitive) dependency for most Android libraries, but it whitelists it for Dagger and…

Drew Hamilton
- 56
- 4
0
votes
1 answer
Dependency Injection in java
I was trying dependency injection in java using the @Inject annotation and I was following the tutorial in this link. According to the tutorial I created the following.
import javax.inject.Inject;
public class GreetingBean {
@Inject private…

Manesh
- 586
- 3
- 14
- 31