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 BindingPublisher
s.-
Method Summary
Modifier and TypeMethodDescriptionboolean
add
(BindingPublisher publisher) Adds the given rankedBindingPublisher
and distributes itsBinding
s.void
clear()
Removes all knownBindingPublisher
s and theirBinding
s.Snapshot of currently registeredBindingPublisher
s.boolean
remove
(BindingPublisher publisher) Removes the givenBindingPublisher
and itsBinding
s.Methods inherited from interface org.eclipse.sisu.inject.BeanLocator
locate, watch
-
Method Details
-
add
Adds the given rankedBindingPublisher
and distributes itsBinding
s.- Parameters:
publisher
- The new publisher- Returns:
true
if the publisher was added; otherwisefalse
-
remove
Removes the givenBindingPublisher
and itsBinding
s.- Parameters:
publisher
- The old publisher- Returns:
true
if the publisher was removed; otherwisefalse
-
publishers
Iterable<BindingPublisher> publishers()Snapshot of currently registeredBindingPublisher
s.- Returns:
- The registered
BindingPublisher
s
-
clear
void clear()Removes all knownBindingPublisher
s and theirBinding
s.
-