-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Google Guice provides some great dependency injection features.
I came across the @Nullable feature recently which allows you to mark constructor arguments as optional (permitting null) since Guice does not permit these by default:
e.g.
public Person(String firstName, String lastName, @Nullable…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Weld, the JSR-299 Contexts and Dependency Injection reference implementation, considers itself as a kind of successor of Spring and Guice.
CDI was influenced by a number of existing Java frameworks, including Seam, Guice and Spring. However, CDI has its own, very distinct, character: more typesafe…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Has anyone ever tried to combine the use of google guice with obfuscation (in particular proguard)?
The obfuscated version of my code does not work with google guice as guice complains about missing type parameters. This information seems to be erased by the transformation step that proguard does…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello,
I was going through the source of google guice, and found an unfamiliar piece of code. It would be great learning if someone can clarify it.
I have very basic understanding of inner classes, as they keep the implementation details close to the public interface. Otherwise the inner class…
>>> More
-
as seen on Programmers
- Search for 'Programmers'
I'm new to dependency injection and though I've really liked it so far, I'm not sure where bindings should go. I'm using Guice in Java, so some of what I say might be specific to just Guice. As I see it, there's two options:
Accompanying the class(s) its needed for. Then, just write install(OtherClassModule…
>>> More