use of org.jboss.as.server.suspend.SuspendController in project wildfly by wildfly.
the class EJBSuspendHandlerService method start.
/**
* Starts the service. Registers server activity, sets transaction listener on local transaction context, and creates and
* installs deployment controller service.
*
* @param context start context
*/
public void start(StartContext context) {
final SuspendController suspendController = suspendControllerInjectedValue.getValue();
suspendController.registerActivity(this);
final LocalTransactionContext localTransactionContext = localTransactionContextInjectedValue.getValue();
localTransactionContext.registerCreationListener(this);
}
use of org.jboss.as.server.suspend.SuspendController in project wildfly by wildfly.
the class EJBSuspendHandlerService method stop.
/**
* Stops the service. Unregisters service activity and clears transaction listener.
* @param context stop context
*/
public void stop(StopContext context) {
final SuspendController suspendController = suspendControllerInjectedValue.getValue();
suspendController.unRegisterActivity(this);
final LocalTransactionContext localTransactionContext = localTransactionContextInjectedValue.getValue();
localTransactionContext.removeCreationListener(this);
}
Aggregations