Harder, Better, Faster, Stronger Eclipse 4 RCP Applications with Google Guava

You are not authorized to post comments.
Session Type: 
Standard [35 minutes]

The Google Guava project contains several libraries that Google relies on in their Java-based projects: collections, caching, primitives support, concurrency libraries, common annotations, string processing, I/O, and so forth. As is, it is the ideal (necessary ?) complement to the standard JDK you are familiar with.

It has been gaining momentum during the past few months and if you did not have the time to have a look at it, this talk is for you. You will see, from an Eclipse developer point of view, how you can leverage some of its most useful APIs.

Among others :

Caching API. Are you used to create Maps for your caches but lack some eviction option ? Use Guava Cache and its tremendous number of evictions strategies (size based, time based, reference based...) and its stats to finely tune your performance.

New collections types. Multiset as a replacement for Map, Multimap as a replacement for Map>, BiMap as a replacement for a couple of Map and Map, Table as a replacement for Map>.
Immutable Collections. The biggest lack from the java.util package. These immutable variants are safe for use by untrusted libraries, thread-safe, and can make time and space savings thanks to the assumption that they don't need to support mutation.

Event Bus. To get rid of the listeners leaks. It allows publish-subscribe-style communication between components without requiring the components to explicitly register with one another. Useful when you don't want to pull the whole complexity of event admin service OSGi.

An implementation of a BloomFilter. It is a space-efficient probabilistic data structure that is used to test whether an element is a member of a set. False positives are possible, but false negatives are not. It can make a !set.contains(value) very memory-efficient

All of these APIs will be demonstrated on stage with some code and fun examples. These examples will be taken out of a sample Eclipse 4 RCP application and will show you how to develop harder, better, faster and stronger applications.

Schedule info



Cool Stuff (Other)
Experience level: 


Eclipse 4 has its own EventBus implementation which is used internally, so I think the whole complexity of event admin service OSGi has already been removed.

Copyright © 2013 The Eclipse Foundation. All Rights Reserved.