org.ops4j.peaberry.cache
Interface CachingServiceRegistry

All Superinterfaces:
ServiceRegistry, ServiceWatcher<Object>
All Known Implementing Classes:
AbstractServiceRegistry, OSGiServiceRegistry

public interface CachingServiceRegistry
extends ServiceRegistry

ServiceRegistry that caches service instances for faster lookup.

Author:
mcculls@gmail.com (Stuart McCulloch)

Method Summary
 void flush(int targetGeneration)
          Release any unused service instances from the cache.
 
Methods inherited from interface org.ops4j.peaberry.ServiceRegistry
lookup, watch
 
Methods inherited from interface org.ops4j.peaberry.ServiceWatcher
add
 

Method Detail

flush

void flush(int targetGeneration)
Release any unused service instances from the cache.

Parameters:
targetGeneration - the generation to flush


Copyright © 2006-2012 OPS4J - Open Participation Software for Java. All Rights Reserved.