org.eclipse.sisu.inject.MutableBeanLocator |
![]() |
Mutable BeanLocator
that finds and tracks bindings across zero or more BindingPublisher
s.
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
BindingPublisher s and their Bindings. | ||||||||||
abstract Iterable<BindingPublisher> |
publishers()
Snapshot of currently registered
BindingPublisher s. | ||||||||||
abstract void |
remove(Injector injector)
Removes the given Injector and its Bindings.
| ||||||||||
abstract boolean |
remove(BindingPublisher publisher)
Removes the given
BindingPublisher and its Bindings. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
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.
injector | The new injector |
---|---|
rank | The assigned rank; should reflect the injector's maxRank() |
Adds the given ranked BindingPublisher
and distributes its Bindings.
publisher | The new publisher |
---|
true
if the publisher was added; otherwise false
Snapshot of currently registered BindingPublisher
s.
BindingPublisher
s
Removes the given Injector and its Bindings.
injector | The old injector |
---|
Removes the given BindingPublisher
and its Bindings.
publisher | The old publisher |
---|
true
if the publisher was removed; otherwise false