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 Bindings.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the given rankedBindingto this subscriber.bindings()Snapshot of currently subscribedBindings.private StringvoidRemoves the givenBindingfrom this subscriber.com.google.inject.TypeLiteral<T> type()Returns the type ofBindings that are of interest.
-
Field Details
-
beans
-
key
-
mediator
-
strategy
-
watcherRef
-
-
Constructor Details
-
WatchedBeans
-
-
Method Details
-
type
Description copied from interface:BindingSubscriberReturns the type ofBindings that are of interest.- Specified by:
typein interfaceBindingSubscriber<Q extends Annotation>- Returns:
- The literal type
-
add
Description copied from interface:BindingSubscriberAdds the given rankedBindingto this subscriber.- Specified by:
addin interfaceBindingSubscriber<Q extends Annotation>- Parameters:
binding- The new bindingrank- The assigned rank
-
remove
Description copied from interface:BindingSubscriberRemoves the givenBindingfrom this subscriber.- Specified by:
removein interfaceBindingSubscriber<Q extends Annotation>- Parameters:
binding- The old binding
-
bindings
Description copied from interface:BindingSubscriberSnapshot of currently subscribedBindings.- Specified by:
bindingsin interfaceBindingSubscriber<Q extends Annotation>- Returns:
- The subscribed
Bindings
-
detail
-