|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServiceRegistry
A registry is a ServiceWatcher that allows lookup of services.
| Method Summary | ||
|---|---|---|
|
lookup(Class<T> clazz,
AttributeFilter filter)
Lookup services from the registry, constrained by the given filter. |
|
|
watch(Class<T> clazz,
AttributeFilter filter,
ServiceWatcher<? super T> watcher)
Watch for services in the registry, constrained by the given filter. |
|
| Methods inherited from interface org.ops4j.peaberry.ServiceWatcher |
|---|
add |
| Method Detail |
|---|
<T> Iterable<Import<T>> lookup(Class<T> clazz,
AttributeFilter filter)
clazz - expected service interfacefilter - service attribute filter
<T> void watch(Class<T> clazz,
AttributeFilter filter,
ServiceWatcher<? super T> watcher)
clazz - expected service interfacefilter - service attribute filterwatcher - the watcher that should receive any matching services
UnsupportedOperationException - if watching is not supported
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||