public interface MutableBeanLocator extends BeanLocator
BeanLocator
that finds and tracks bindings across zero or more BindingPublisher
s.Modifier and Type | Method and Description |
---|---|
boolean |
add(BindingPublisher publisher)
Adds the given ranked
BindingPublisher and distributes its Binding s. |
void |
add(com.google.inject.Injector injector,
int rank)
Deprecated.
injectors are normally added automatically, clients should not need to call this method
|
void |
clear()
Removes all known
BindingPublisher s and their Binding s. |
java.lang.Iterable<BindingPublisher> |
publishers()
Snapshot of currently registered
BindingPublisher s. |
boolean |
remove(BindingPublisher publisher)
Removes the given
BindingPublisher and its Binding s. |
void |
remove(com.google.inject.Injector injector)
Deprecated.
|
locate, watch
boolean add(BindingPublisher publisher)
BindingPublisher
and distributes its Binding
s.publisher
- The new publishertrue
if the publisher was added; otherwise false
boolean remove(BindingPublisher publisher)
BindingPublisher
and its Binding
s.publisher
- The old publishertrue
if the publisher was removed; otherwise false
java.lang.Iterable<BindingPublisher> publishers()
BindingPublisher
s.BindingPublisher
svoid clear()
BindingPublisher
s and their Binding
s.@Deprecated void add(com.google.inject.Injector injector, int rank)
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 injectorrank
- The assigned rank; should reflect the injector's RankingFunction.maxRank()
@Deprecated void remove(com.google.inject.Injector injector)
Injector
and its Binding
s.injector
- The old injector