Package org.eclipse.sisu.inject
Class WatchedBeans<Q extends Annotation,T,W>
java.lang.Object
org.eclipse.sisu.inject.WatchedBeans<Q,T,W>
- All Implemented Interfaces:
BindingSubscriber<T>
Provides dynamic
BeanEntry
notifications by tracking qualified Binding
s.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the given rankedBinding
to this subscriber.bindings()
Snapshot of currently subscribedBinding
s.private String
void
Removes the givenBinding
from this subscriber.com.google.inject.TypeLiteral<T>
type()
Returns the type ofBinding
s that are of interest.
-
Field Details
-
beans
-
key
-
mediator
-
strategy
-
watcherRef
-
-
Constructor Details
-
WatchedBeans
-
-
Method Details
-
type
Description copied from interface:BindingSubscriber
Returns the type ofBinding
s that are of interest.- Specified by:
type
in interfaceBindingSubscriber<Q extends Annotation>
- Returns:
- The literal type
-
add
Description copied from interface:BindingSubscriber
Adds the given rankedBinding
to this subscriber.- Specified by:
add
in interfaceBindingSubscriber<Q extends Annotation>
- Parameters:
binding
- The new bindingrank
- The assigned rank
-
remove
Description copied from interface:BindingSubscriber
Removes the givenBinding
from this subscriber.- Specified by:
remove
in interfaceBindingSubscriber<Q extends Annotation>
- Parameters:
binding
- The old binding
-
bindings
Description copied from interface:BindingSubscriber
Snapshot of currently subscribedBinding
s.- Specified by:
bindings
in interfaceBindingSubscriber<Q extends Annotation>
- Returns:
- The subscribed
Binding
s
-
detail
-