Package org.eclipse.sisu.inject
Interface MutableBeanLocator
-
- All Superinterfaces:
BeanLocator
- All Known Implementing Classes:
DefaultBeanLocator
public interface MutableBeanLocator extends BeanLocator
MutableBeanLocatorthat finds and tracks bindings across zero or moreBindingPublishers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanadd(BindingPublisher publisher)Adds the given rankedBindingPublisherand distributes itsBindings.voidclear()Removes all knownBindingPublishers and theirBindings.Iterable<BindingPublisher>publishers()Snapshot of currently registeredBindingPublishers.booleanremove(BindingPublisher publisher)Removes the givenBindingPublisherand itsBindings.-
Methods inherited from interface org.eclipse.sisu.inject.BeanLocator
locate, watch
-
-
-
-
Method Detail
-
add
boolean add(BindingPublisher publisher)
Adds the given rankedBindingPublisherand distributes itsBindings.- Parameters:
publisher- The new publisher- Returns:
trueif the publisher was added; otherwisefalse
-
remove
boolean remove(BindingPublisher publisher)
Removes the givenBindingPublisherand itsBindings.- Parameters:
publisher- The old publisher- Returns:
trueif the publisher was removed; otherwisefalse
-
publishers
Iterable<BindingPublisher> publishers()
Snapshot of currently registeredBindingPublishers.- Returns:
- The registered
BindingPublishers
-
clear
void clear()
Removes all knownBindingPublishers and theirBindings.
-
-