diff options
author | Julien Lepiller <julien@lepiller.eu> | 2017-10-14 23:09:44 +0200 |
---|---|---|
committer | Julien Lepiller <julien@lepiller.eu> | 2017-10-23 22:55:14 +0200 |
commit | 454536e0cef32781109a4d9d72cc4c131d527b97 (patch) | |
tree | 955a525d8453c861aebdbf8af153b2d7f314fcb8 | |
parent | 5d104a27565eea05302c2e3cd8ee2f4f5a8e1260 (diff) | |
download | guix-454536e0cef32781109a4d9d72cc4c131d527b97.tar.gz |
gnu: Add java-javax-inject.
* gnu/packages/java.scm (java-javax-inject): New variable.
-rw-r--r-- | gnu/packages/java.scm | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index 07a50c4674..4ef6c98c30 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -6089,3 +6089,34 @@ the subsequent value resolution at any given level.") software engineering people who are interested in Aspect-Oriented Programming (AOP) and Java.") (license license:public-domain))) + +(define-public java-javax-inject + (package + (name "java-javax-inject") + (version "tck-1") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/javax-inject/javax-inject/" + "archive/javax.inject-" version ".tar.gz")) + (sha256 + (base32 + "1ydrlvh2r7vr1g7lhjwy3w2dggpj9h6pix1lakkkgdywb365n6g0")))) + (build-system ant-build-system) + (arguments + `(#:jar-name "java-javax-inject.jar" + #:jdk ,icedtea-8 + #:tests? #f)); no tests + (home-page "http://github.com/javax-inject/javax-inject") + (synopsis "JSR-330: Dependency Injection for Java") + (description "This package specifies a means for obtaining objects in such +a way as to maximize reusability, testability and maintainability compared to +traditional approaches such as constructors, factories, and service locators +(e.g., JNDI). This process, known as dependency injection, is beneficial to +most nontrivial applications. + +Many types depend on other types. For example, a @var{Stopwatch} might depend +on a @var{TimeSource}. The types on which a type depends are known as its +dependencies. The process of finding an instance of a dependency to use at run +time is known as resolving the dependency. If no such instance can be found, +the dependency is said to be unsatisfied, and the application is broken.") + (license license:asl2.0))) |