org.ops4j.peaberry
Interface ServiceWatcher<S>

All Known Subinterfaces:
CachingServiceRegistry, ServiceRegistry
All Known Implementing Classes:
AbstractServiceRegistry, AbstractWatcher, FilteredServiceWatcher, OSGiServiceRegistry, RegistryChain

public interface ServiceWatcher<S>

A service watcher can receive services provided by other registries.

Since:
1.1
Author:
mcculls@gmail.com (Stuart McCulloch)

Method Summary
<T extends S>
Export<T>
add(Import<T> service)
          Add the given service to this watcher.
 

Method Detail

add

<T extends S> Export<T> add(Import<T> service)
Add the given service to this watcher.

Parameters:
service - imported service handle
Returns:
exported service handle, null if the watcher is not interested


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