I've created a simple but not completely trivial demo application using Guice. This is something I did to understand and compare Google-Guice with JBoss Weld's CDI RI for Java SE.
This project is a pure Guice project called Guice-Demo (duh) . Here's the source. Well, that's all there is. I thought this would be of some use to other first time users. The project wiki/docs are minimal and I might add some info later on, when I have the time. Until then I hope that the code is self explanatory.
If you are interested in the Java CDI standard, then this is useful. Weld also works on JavaSE but has no control over classpath scanning for injection and makes starts up times slower and somewhat wasteful.
Guice's module creation is very straightforward. It also allows creating multiple Injector instances.
Both Weld and Guice are not very unit test friendly as you will see here.
Ashwin.
Sunday, August 28, 2011
Guicing up your app with Google Guice
Saturday, August 27, 2011
Hiking in Stevens Creek County Park
Accessible and a relaxing walk around the reservoir that can easily convert to a longer hike. It's surprising that I had never been to this place, less than 15 minutes away. Avoid the main entrance on Balboa road which requires a fee to park. Try the West campus entrance where street parking is allowed (looked like).
There are 2 adjacent parks that are probably worth visiting as well.
Saturday, August 13, 2011
In-memory DB tables, shared nothing, time series, low latency and others
Some useful articles I read in the past few weeks.
Big data, shared nothing, distributed SQL, in-memory SQL:
- Realtime hadoop usage at Facebook
- Teradata
- Teradata Shared Nothing storage
- Teradata compared with Oracle Exadata
- Slightly dated but comparison doc between Teradata and Oracle
- Apache Derby's tuning docs
- MySQL's in-memory DB options
Very good and detailed accounts of low latency Java based servers:
Disk I/O and time related notes.
Programming and Java:
- The Principles of Good Programming
- JVM Bytecode for Dummies
- Data Structure Visualizations
- Java Concurrent Animated
Until next time,
Ashwin.
Subscribe to:
Posts (Atom)
