java.lang.Object | |
↳ | org.eclipse.sisu.inject.DefaultBeanLocator |
Default MutableBeanLocator
that locates qualified beans across a dynamic group of BindingPublisher
s.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DefaultBeanLocator() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
add(Injector injector, int rank)
Adds the given ranked Injector and distributes its
Binding s. | ||||||||||
synchronized boolean |
add(BindingPublisher publisher)
Adds the given ranked
BindingPublisher and distributes its Binding s. | ||||||||||
synchronized void |
clear()
Removes all known
BindingPublisher s and their Binding s. | ||||||||||
Iterable<BeanEntry> | locate(Key key) | ||||||||||
Iterable<BindingPublisher> |
publishers()
Snapshot of currently registered
BindingPublisher s. | ||||||||||
synchronized boolean |
remove(BindingPublisher publisher)
Removes the given
BindingPublisher and its Binding s. | ||||||||||
void | remove(Injector injector) | ||||||||||
synchronized void | watch(Key key, Mediator mediator, Object watcher) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.eclipse.sisu.inject.BeanLocator
| |||||||||||
From interface
org.eclipse.sisu.inject.MutableBeanLocator
|
Adds the given ranked Injector and distributes its Binding
s. 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 Binding
s.
publisher | The new publisher |
---|
true
if the publisher was added; otherwise false
Snapshot of currently registered BindingPublisher
s.
BindingPublisher
s
Removes the given BindingPublisher
and its Binding
s.
publisher | The old publisher |
---|
true
if the publisher was removed; otherwise false