Package io.tesler.model.core.tx
Class DeploymentTransactionSupportImpl
- java.lang.Object
-
- io.tesler.model.core.tx.DeploymentTransactionSupportImpl
-
- All Implemented Interfaces:
DeploymentTransactionSupport
,EventListener
,org.springframework.beans.factory.DisposableBean
,org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
@Service("deploymentTransactionSupport") public class DeploymentTransactionSupportImpl extends Object implements DeploymentTransactionSupport, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.beans.factory.DisposableBean
-
-
Field Summary
-
Fields inherited from interface io.tesler.api.service.tx.DeploymentTransactionSupport
SERVICE_NAME
-
-
Constructor Summary
Constructors Constructor Description DeploymentTransactionSupportImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
beginDeploymentTransaction()
protected void
commitDeploymentTransaction()
void
destroy()
void
init()
protected boolean
isEnabled()
void
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
protected void
rollbackDeploymentTransaction()
-
-
-
Method Detail
-
isEnabled
protected boolean isEnabled()
-
init
@PostConstruct public void init()
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
-
destroy
public void destroy()
- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
-
beginDeploymentTransaction
protected void beginDeploymentTransaction()
-
commitDeploymentTransaction
protected void commitDeploymentTransaction()
-
rollbackDeploymentTransaction
protected void rollbackDeploymentTransaction()
-
-