Package org.osgi.service.cdi.reference
Interface BindBeanServiceObjects<S>
-
- Type Parameters:
S
- the service argument type.
@ProviderType public interface BindBeanServiceObjects<S>
A bean provided by CCR for binding actions to life cycle events of matching services.- Author:
- $Id: 8f2ee6be3d689d75ec6c5b24fe5a89611e934d7c $
- See Also:
Reference
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
adding
BindBeanServiceObjects<S> adding(java.util.function.Consumer<BeanServiceObjects<S>> action)
Subscribe an action to the adding service event.Only the last adding action is used.
- Parameters:
action
- the action, whose argument is the Bean Service Objects, to subscribe to the adding service event- Returns:
- self
- Throws:
java.lang.IllegalStateException
- when called afterbind()
-
modified
BindBeanServiceObjects<S> modified(java.util.function.Consumer<BeanServiceObjects<S>> action)
Subscribe an action to the modified service event.Only the last modified action is used.
- Parameters:
action
- the action, whose argument is the Bean Service Objects, to subscribe to the modified service event- Returns:
- self
- Throws:
java.lang.IllegalStateException
- when called afterbind()
-
removed
BindBeanServiceObjects<S> removed(java.util.function.Consumer<BeanServiceObjects<S>> action)
Subscribe an action to the removed service event.Only the last removed action is used.
- Parameters:
action
- the action, whose argument is the Bean Service Objects, to subscribe to the removed service event- Returns:
- self
- Throws:
java.lang.IllegalStateException
- when called afterbind()
-
bind
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.Calling
bind()
again has no effect.
-
-