S - the service argument type.@ProviderType public interface BindBeanServiceObjects<S>
Reference| Modifier and Type | Method and Description |
|---|---|
BindBeanServiceObjects<S> |
adding(java.util.function.Consumer<BeanServiceObjects<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.
|
BindBeanServiceObjects<S> |
modified(java.util.function.Consumer<BeanServiceObjects<S>> action)
Subscribe an action to the modified service event.
|
BindBeanServiceObjects<S> |
removed(java.util.function.Consumer<BeanServiceObjects<S>> action)
Subscribe an action to the removed service event.
|
BindBeanServiceObjects<S> adding(java.util.function.Consumer<BeanServiceObjects<S>> action)
Only the last adding action is used.
action - the action, whose argument is the Bean Service Objects, to
subscribe to the adding service eventjava.lang.IllegalStateException - when called after bind()BindBeanServiceObjects<S> modified(java.util.function.Consumer<BeanServiceObjects<S>> action)
Only the last modified action is used.
action - the action, whose argument is the Bean Service Objects, to
subscribe to the modified service eventjava.lang.IllegalStateException - when called after bind()BindBeanServiceObjects<S> removed(java.util.function.Consumer<BeanServiceObjects<S>> action)
Only the last removed action is used.
action - the action, whose argument is the Bean Service Objects, to
subscribe to the removed service eventjava.lang.IllegalStateException - when called after bind()void bind()
Calling bind() again has no effect.
Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0