Package org.eclipse.sisu.inject
Interface BeanLocator
-
- All Known Subinterfaces:
MutableBeanLocator
- All Known Implementing Classes:
DefaultBeanLocator
public interface BeanLocator
Finds and tracks bean implementations annotated withQualifier
annotations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <Q extends Annotation,T>
Iterable<? extends BeanEntry<Q,T>>locate(com.google.inject.Key<T> key)
Finds bean implementations that match the given qualified bindingKey
.<Q extends Annotation,T,W>
voidwatch(com.google.inject.Key<T> key, Mediator<Q,T,W> mediator, W watcher)
Tracks bean implementations that match the given qualified bindingKey
.
-
-
-
Method Detail
-
locate
<Q extends Annotation,T> Iterable<? extends BeanEntry<Q,T>> locate(com.google.inject.Key<T> key)
Finds bean implementations that match the given qualified bindingKey
.- Parameters:
key
- The qualified key- Returns:
- Sequence of bean entries that match the given key
-
watch
<Q extends Annotation,T,W> void watch(com.google.inject.Key<T> key, Mediator<Q,T,W> mediator, W watcher)
Tracks bean implementations that match the given qualified bindingKey
.Uses the
Mediator
pattern to send events to an arbitrary watcher object.- Parameters:
key
- The qualified keymediator
- The event mediatorwatcher
- The bean watcher
-
-