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, beforeActivationpublic void afterActivation(ServiceReference<ServiceActivation> activated) throws Exception
ServiceActivatorAdapterafterActivation 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
ServiceActivatorAdapterbeforePassivation in interface Activator<ServiceReference<ServiceActivation>>beforePassivation in class ServiceActivatorAdapter<ServiceActivation>passivating - Passivating ServiceException - Allowed to throw Exception which will be wrapped in an PassivationException