public interface BeanLocator
Qualifier
annotations.Modifier and Type | Method and Description |
---|---|
<Q extends java.lang.annotation.Annotation,T> |
locate(com.google.inject.Key<T> key)
Finds bean implementations that match the given qualified binding
Key . |
<Q extends java.lang.annotation.Annotation,T,W> |
watch(com.google.inject.Key<T> key,
Mediator<Q,T,W> mediator,
W watcher)
Tracks bean implementations that match the given qualified binding
Key . |
<Q extends java.lang.annotation.Annotation,T> java.lang.Iterable<? extends BeanEntry<Q,T>> locate(com.google.inject.Key<T> key)
Key
.key
- The qualified key<Q extends java.lang.annotation.Annotation,T,W> void watch(com.google.inject.Key<T> key, Mediator<Q,T,W> mediator, W watcher)
Key
.
Uses the Mediator
pattern to send events to an arbitrary watcher object.
key
- The qualified keymediator
- The event mediatorwatcher
- The bean watcher