Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 225191 - [java-overlay] dev-java/guice-1.0-r1 (new package)
Summary: [java-overlay] dev-java/guice-1.0-r1 (new package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Java team
URL: http://code.google.com/p/google-guice/
Whiteboard:
Keywords: EBUILD, InOverlay
Depends on:
Blocks: 225193 231438
  Show dependency tree
 
Reported: 2008-06-07 08:20 UTC by Serkan Kaba (RETIRED)
Modified: 2013-09-25 17:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Serkan Kaba (RETIRED) gentoo-dev 2008-06-07 08:20:05 UTC
Put simply, Guice alleviates the need for factories and the use of new in your Java code. Think of Guice's @Inject as the new new. You will still need to write factories in some cases, but your code will not depend directly on them. Your code will be easier to change, unit test and reuse in other contexts.

Guice embraces Java's type safe nature, especially when it comes to features introduced in Java 5 such as generics and annotations. You might think of Guice as filling in missing features for core Java. Ideally, the language itself would provide most of the same features, but until such a language comes along, we have Guice.

Guice helps you design better APIs, and the Guice API itself sets a good example. Guice is not a kitchen sink. We justify each feature with at least three use cases. When in doubt, we leave it out. We build general functionality which enables you to extend Guice rather than adding every feature to the core framework.

Guice aims to make development and debugging easier and faster, not harder and slower. In that vein, Guice steers clear of surprises and magic. You should be able to understand code with or without tools, though tools can make things even easier. When errors do occur, Guice goes the extra mile to generate helpful messages. 

Reproducible: Always
Comment 1 Johann Schmitz (ercpe) (RETIRED) gentoo-dev 2013-09-25 17:22:24 UTC
+  25 Sep 2013; Johann Schmitz <ercpe@gentoo.org> +files/2.0-build.xml.patch,
+  +files/2.0-common.xml.patch, +guice-2.0.ebuild, +metadata.xml:
+  Ebuild for guice:2 - lightweight dependency injection framework

+  25 Sep 2013; Johann Schmitz <ercpe@gentoo.org> +files/3.0-build.xml.patch,
+  +files/3.0-common.xml.patch, +guice-3.0.ebuild:
+  Latest version (:3) of guice - lightweight dependency injection framework