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 with
Qualifier annotations.-
Method Summary
Modifier and TypeMethodDescription<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>
voidTracks bean implementations that match the given qualified bindingKey.
-
Method Details
-
locate
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, void watchW> (com.google.inject.Key<T> key, Mediator<Q, T, W> mediator, W watcher) Tracks bean implementations that match the given qualified bindingKey.Uses the
Mediatorpattern to send events to an arbitrary watcher object.- Parameters:
key- The qualified keymediator- The event mediatorwatcher- The bean watcher
-