public interface

MutableBeanLocator

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

Class Overview

Mutable BeanLocator that finds and tracks bindings across zero or more BindingPublishers.

Summary

Public Methods
abstract void add(Injector injector, int rank)
This method is deprecated. injectors are normally added automatically, clients should not need to call this method
abstract boolean add(BindingPublisher publisher)
Adds the given ranked BindingPublisher and distributes its Bindings.
abstract void clear()
Removes all known BindingPublishers and their Bindings.
abstract Iterable<BindingPublisher> publishers()
Snapshot of currently registered BindingPublishers.
abstract boolean remove(BindingPublisher publisher)
Removes the given BindingPublisher and its Bindings.
abstract void remove(Injector injector)
Removes the given Injector and its Bindings.
[Expand]
Inherited Methods
From interface org.eclipse.sisu.inject.BeanLocator

Public Methods

public abstract void add (Injector injector, int rank)

This method is deprecated.
injectors are normally added automatically, clients should not need to call this method

Adds the given ranked Injector and distributes its Bindings. Marked as deprecated because most clients should not call this method; any injector with an instance binding to a BeanLocator is automatically added to that locator as part of the bootstrapping process.

Parameters
injector The new injector
rank The assigned rank; should reflect the injector's maxRank()

public abstract boolean add (BindingPublisher publisher)

Adds the given ranked BindingPublisher and distributes its Bindings.

Parameters
publisher The new publisher
Returns
  • true if the publisher was added; otherwise false

public abstract void clear ()

Removes all known BindingPublishers and their Bindings.

public abstract Iterable<BindingPublisher> publishers ()

Snapshot of currently registered BindingPublishers.

Returns

public abstract boolean remove (BindingPublisher publisher)

Removes the given BindingPublisher and its Bindings.

Parameters
publisher The old publisher
Returns
  • true if the publisher was removed; otherwise false

public abstract void remove (Injector injector)

Removes the given Injector and its Bindings.

Parameters
injector The old injector