S
- the service argument type.@ProviderType public interface BindServiceReference<S>
Reference
Modifier and Type | Method and Description |
---|---|
BindServiceReference<S> |
adding(BiConsumer<ServiceReference<S>,S> action)
Subscribe an action to the adding service event.
|
BindServiceReference<S> |
adding(Consumer<ServiceReference<S>> action)
Subscribe an action to the adding service event.
|
void |
bind()
The bind terminal operation is required to instruct CCR that all the bind
actions have been specified, otherwise bind actions will never be called
by CCR.
|
BindServiceReference<S> |
modified(BiConsumer<ServiceReference<S>,S> action)
Subscribe an action to the modified service event.
|
BindServiceReference<S> |
modified(Consumer<ServiceReference<S>> action)
Subscribe an action to the modified service event.
|
BindServiceReference<S> |
removed(BiConsumer<ServiceReference<S>,S> action)
Subscribe an action to the removed service event.
|
BindServiceReference<S> |
removed(Consumer<ServiceReference<S>> action)
Subscribe an action to the removed service event.
|
BindServiceReference<S> adding(Consumer<ServiceReference<S>> action)
Only the last adding action is used.
action
- the action, whose argument is the service reference, to
subscribe to the adding service eventIllegalStateException
- when called after bind()
BindServiceReference<S> adding(BiConsumer<ServiceReference<S>,S> action)
Only the last adding action is used.
action
- the action, whose arguments are the service reference and
the service object, to subscribe to the adding
service eventIllegalStateException
- when called after bind()
BindServiceReference<S> modified(Consumer<ServiceReference<S>> action)
Only the last modified action is used.
action
- the action, whose argument is the service reference, to
subscribe to the modified service eventIllegalStateException
- when called after bind()
BindServiceReference<S> modified(BiConsumer<ServiceReference<S>,S> action)
Only the last modified action is used.
action
- the action, whose arguments are the service reference and
the service object, to subscribe to the
modified service eventIllegalStateException
- when called after bind()
BindServiceReference<S> removed(Consumer<ServiceReference<S>> action)
Only the last removed action is used.
action
- the action, whose argument is the service reference, to
subscribe to the removed service eventIllegalStateException
- when called after bind()
BindServiceReference<S> removed(BiConsumer<ServiceReference<S>,S> action)
Only the last removed action is used.
action
- the action, whose arguments are the service reference and
the service object, to subscribe to the
removed service eventIllegalStateException
- when called after bind()
void bind()
Calling bind()
again has no effect.
Copyright © Contributors to the Eclipse Foundation Licensed under the Eclipse Foundation Specification License – v1.0