Package org.jabylon.common.util
Class ServiceCache<K,V>
- java.lang.Object
-
- org.jabylon.common.util.ServiceCache<K,V>
-
- All Implemented Interfaces:
com.google.common.cache.RemovalListener<org.jabylon.common.util.ServiceKey<K>,V>
public class ServiceCache<K,V> extends Object implements com.google.common.cache.RemovalListener<org.jabylon.common.util.ServiceKey<K>,V>
-
-
Constructor Summary
Constructors Constructor Description ServiceCache()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <K,V>
ServiceCache<K,V>create(com.google.common.cache.CacheLoader<K,V> loader)Collection<V>getAllServices(K key)Collection<V>getAllServices(K key, String filter)VgetService(K key)VgetService(K key, String filter)voidonRemoval(com.google.common.cache.RemovalNotification<org.jabylon.common.util.ServiceKey<K>,V> arg0)
-
-
-
Method Detail
-
create
public static <K,V> ServiceCache<K,V> create(com.google.common.cache.CacheLoader<K,V> loader)
-
onRemoval
public void onRemoval(com.google.common.cache.RemovalNotification<org.jabylon.common.util.ServiceKey<K>,V> arg0)
-
getAllServices
public Collection<V> getAllServices(K key)
-
getAllServices
public Collection<V> getAllServices(K key, String filter)
-
-