Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where I can find @Inject jar

I'm following the MVC unit test instructions from this site, but I cannot find the jar for the @Inject annotation. Does anybody know where the jar is?

like image 775
Adi Sembiring Avatar asked Nov 09 '10 06:11

Adi Sembiring


People also ask

What is @inject in javax?

A method annotated with @Inject that overrides another method annotated with @Inject will only be injected once per injection request per instance. A method with no @Inject annotation that overrides a method annotated with @Inject will not be injected. Injection of members annotated with @Inject is required.

What is inject annotation?

@Inject annotation is a standard annotation, which is defined in the standard "Dependency Injection for Java" (JSR-330). Spring (since the version 3.0) supports the generalized model of dependency injection which is defined in the standard JSR-330.

What is javax inject provider?

javax.injectProvides instances of T . Typically implemented by an injector. For any type T that can be injected, you can also inject Provider<T> . Compared to injecting T directly, injecting Provider<T> enables: retrieving multiple instances.


1 Answers

Via Maven:

<dependency>   <groupId>javax.inject</groupId>   <artifactId>javax.inject</artifactId>   <version>1</version> </dependency> 

Or from the Project Home Page: http://code.google.com/p/atinject/

Also, this MvnRepository.com page provides the necessary configurations for other build tools like Ivy, Gradle etc.

like image 132
Sean Patrick Floyd Avatar answered Sep 20 '22 18:09

Sean Patrick Floyd