public static class ServiceActivation.ServiceActivator extends ServiceActivatorAdapter<ServiceActivation>
Constructor and Description |
---|
ServiceActivator() |
Modifier and Type | Method and Description |
---|---|
void |
afterActivation(ServiceReference<ServiceActivation> activated)
Called after Service activation.
|
void |
beforePassivation(ServiceReference<ServiceActivation> passivating)
Called before Service passivation.
|
afterPassivation, beforeActivation
public void afterActivation(ServiceReference<ServiceActivation> activated) throws Exception
ServiceActivatorAdapter
afterActivation
in interface Activator<ServiceReference<ServiceActivation>>
afterActivation
in class ServiceActivatorAdapter<ServiceActivation>
activated
- Activated ServiceException
- Allowed to throw Exception which will be wrapped in an ActivationExceptionpublic void beforePassivation(ServiceReference<ServiceActivation> passivating) throws Exception
ServiceActivatorAdapter
beforePassivation
in interface Activator<ServiceReference<ServiceActivation>>
beforePassivation
in class ServiceActivatorAdapter<ServiceActivation>
passivating
- Passivating ServiceException
- Allowed to throw Exception which will be wrapped in an PassivationException