|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ops4j.peaberry.cache.RegistryChain
public class RegistryChain
A ServiceRegistry that delegates to a series of other registries.
| Constructor Summary | |
|---|---|
RegistryChain(ServiceRegistry mainRegistry,
ServiceRegistry[] extraRegistries)
|
|
| Method Summary | ||
|---|---|---|
|
add(Import<T> service)
Add the given service to this watcher. |
|
boolean |
equals(Object rhs)
|
|
int |
hashCode()
|
|
|
lookup(Class<T> clazz,
AttributeFilter filter)
Lookup services from the registry, constrained by the given filter. |
|
String |
toString()
|
|
|
watch(Class<T> clazz,
AttributeFilter filter,
ServiceWatcher<? super T> watcher)
Watch for services in the registry, constrained by the given filter. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
@Inject
public RegistryChain(ServiceRegistry mainRegistry,
ServiceRegistry[] extraRegistries)
| Method Detail |
|---|
public final <T> Iterable<Import<T>> lookup(Class<T> clazz,
AttributeFilter filter)
ServiceRegistry
lookup in interface ServiceRegistryclazz - expected service interfacefilter - service attribute filter
public final <T> void watch(Class<T> clazz,
AttributeFilter filter,
ServiceWatcher<? super T> watcher)
ServiceRegistry
watch in interface ServiceRegistryclazz - expected service interfacefilter - service attribute filterwatcher - the watcher that should receive any matching servicespublic final <T> Export<T> add(Import<T> service)
ServiceWatcher
add in interface ServiceWatcher<Object>service - imported service handle
public final String toString()
toString in class Objectpublic final int hashCode()
hashCode in class Objectpublic final boolean equals(Object rhs)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||