public interface

BeanLocator

org.eclipse.sisu.inject.BeanLocator
Known Indirect Subclasses

Class Overview

Finds and tracks bean implementations annotated with Qualifier annotations.

Summary

Public Methods
abstract <Q extends Annotation, T> Iterable<? extends BeanEntry<Q, T>> locate(Key<T> key)
Finds bean implementations that match the given qualified binding Key.
abstract <Q extends Annotation, T, W> void watch(Key<T> key, Mediator<Q, T, W> mediator, W watcher)
Tracks bean implementations that match the given qualified binding Key.

Public Methods

public abstract Iterable<? extends BeanEntry<Q, T>> locate (Key<T> key)

Finds bean implementations that match the given qualified binding Key.

Parameters
key The qualified key
Returns
  • Sequence of bean entries that match the given key

public abstract void watch (Key<T> key, Mediator<Q, T, W> mediator, W watcher)

Tracks bean implementations that match the given qualified binding Key.

Uses the Mediator pattern to send events to an arbitrary watcher object.

Parameters
key The qualified key
mediator The event mediator
watcher The bean watcher