public interface MutableBeanLocator extends BeanLocator
BeanLocator
that finds and tracks bindings across zero or more BindingPublisher
s.Modifier and Type | Method and Description |
---|---|
void |
add(BindingPublisher publisher,
int rank)
Adds the given ranked
BindingPublisher and distributes its Binding s. |
void |
add(com.google.inject.Injector injector,
int rank)
Deprecated.
|
void |
clear()
Removes all known
BindingPublisher s and their Binding s. |
void |
remove(BindingPublisher publisher)
Removes the given
BindingPublisher and its Binding s. |
void |
remove(com.google.inject.Injector injector)
Deprecated.
|
locate, watch
void add(BindingPublisher publisher, int rank)
BindingPublisher
and distributes its Binding
s.publisher
- The new publisherrank
- The assigned rankvoid remove(BindingPublisher publisher)
BindingPublisher
and its Binding
s.publisher
- The old publishervoid 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 that contains a binding to the BeanLocator
is
automatically added to that locator as part of the bootstrapping process.injector
- The new injectorrank
- The assigned rank@Deprecated void remove(com.google.inject.Injector injector)
Injector
and its Binding
s.injector
- The old injectorCopyright © 2013. All rights reserved.