Package org.eclipse.sisu.inject
Interface MutableBeanLocator
- All Superinterfaces:
BeanLocator
- All Known Implementing Classes:
DefaultBeanLocator
Mutable
BeanLocator that finds and tracks bindings across zero or more BindingPublishers.-
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(BindingPublisher publisher) Adds the given rankedBindingPublisherand distributes itsBindings.voidclear()Removes all knownBindingPublishers and theirBindings.Snapshot of currently registeredBindingPublishers.booleanremove(BindingPublisher publisher) Removes the givenBindingPublisherand itsBindings.Methods inherited from interface org.eclipse.sisu.inject.BeanLocator
locate, watch
-
Method Details
-
add
Adds the given rankedBindingPublisherand distributes itsBindings.- Parameters:
publisher- The new publisher- Returns:
trueif the publisher was added; otherwisefalse
-
remove
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.
-