ServiceType - Type of the service.public class ServiceActivatorAdapter<ServiceType> extends Object implements Activator<ServiceReference<ServiceType>>
| Constructor and Description |
|---|
ServiceActivatorAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterActivation(ServiceReference<ServiceType> activated)
Called after Service activation.
|
void |
afterPassivation(ServiceReference<ServiceType> passivated)
Called after Service passivation.
|
void |
beforeActivation(ServiceReference<ServiceType> activating)
Called before Service activation.
|
void |
beforePassivation(ServiceReference<ServiceType> passivating)
Called before Service passivation.
|
public void beforeActivation(ServiceReference<ServiceType> activating) throws Exception
beforeActivation in interface Activator<ServiceReference<ServiceType>>activating - Activating ServiceException - Allowed to throw Exception which will be wrapped in an ActivationExceptionpublic void afterActivation(ServiceReference<ServiceType> activated) throws Exception
afterActivation in interface Activator<ServiceReference<ServiceType>>activated - Activated ServiceException - Allowed to throw Exception which will be wrapped in an ActivationExceptionpublic void beforePassivation(ServiceReference<ServiceType> passivating) throws Exception
beforePassivation in interface Activator<ServiceReference<ServiceType>>passivating - Passivating ServiceException - Allowed to throw Exception which will be wrapped in an PassivationExceptionpublic void afterPassivation(ServiceReference<ServiceType> passivated) throws Exception
afterPassivation in interface Activator<ServiceReference<ServiceType>>passivated - Passivated ServiceException - Allowed to throw Exception which will be wrapped in an PassivationException