public interface MutableBeanLocator extends BeanLocator
BeanLocator that finds and tracks bindings across zero or more BindingPublishers.| Modifier and Type | Method and Description |
|---|---|
boolean |
add(BindingPublisher publisher)
Adds the given ranked
BindingPublisher and distributes its Bindings. |
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
BindingPublishers and their Bindings. |
java.lang.Iterable<BindingPublisher> |
publishers()
Snapshot of currently registered
BindingPublishers. |
boolean |
remove(BindingPublisher publisher)
Removes the given
BindingPublisher and its Bindings. |
void |
remove(com.google.inject.Injector injector)
Deprecated.
|
locate, watchboolean add(BindingPublisher publisher)
BindingPublisher and distributes its Bindings.publisher - The new publishertrue if the publisher was added; otherwise falseboolean remove(BindingPublisher publisher)
BindingPublisher and its Bindings.publisher - The old publishertrue if the publisher was removed; otherwise falsejava.lang.Iterable<BindingPublisher> publishers()
BindingPublishers.BindingPublishersvoid clear()
BindingPublishers and their Bindings.@Deprecated
void add(com.google.inject.Injector injector,
int rank)
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 injectorrank - The assigned rank; should reflect the injector's RankingFunction.maxRank()@Deprecated void remove(com.google.inject.Injector injector)
Injector and its Bindings.injector - The old injector