Package net.officefloor.spring.data
Class SpringDataTransactionGovernance
- java.lang.Object
-
- net.officefloor.spring.data.SpringDataTransactionGovernance
-
- All Implemented Interfaces:
Governance<org.springframework.transaction.PlatformTransactionManager,None>
public class SpringDataTransactionGovernance extends java.lang.Object implements Governance<org.springframework.transaction.PlatformTransactionManager,None>
Spring Data transactionGovernance
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description SpringDataTransactionGovernance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
disregardGovernance(GovernanceContext<None> context)
DisregardGovernance
of theManagedObject
instances.void
enforceGovernance(GovernanceContext<None> context)
void
governManagedObject(org.springframework.transaction.PlatformTransactionManager managedObjectExtension, GovernanceContext<None> context)
Registers theManagedObject
forGovernance
.
-
-
-
Method Detail
-
governManagedObject
public void governManagedObject(org.springframework.transaction.PlatformTransactionManager managedObjectExtension, GovernanceContext<None> context) throws java.lang.Throwable
Description copied from interface:Governance
Registers theManagedObject
forGovernance
.- Specified by:
governManagedObject
in interfaceGovernance<org.springframework.transaction.PlatformTransactionManager,None>
- Parameters:
managedObjectExtension
- Extension of theManagedObject
to enableGovernance
.context
-GovernanceContext
.- Throws:
java.lang.Throwable
- If fails to govern theManagedObject
.
-
enforceGovernance
public void enforceGovernance(GovernanceContext<None> context) throws java.lang.Throwable
Description copied from interface:Governance
- Specified by:
enforceGovernance
in interfaceGovernance<org.springframework.transaction.PlatformTransactionManager,None>
- Parameters:
context
-GovernanceContext
.- Throws:
java.lang.Throwable
- If fails to enforceGovernance
.
-
disregardGovernance
public void disregardGovernance(GovernanceContext<None> context) throws java.lang.Throwable
Description copied from interface:Governance
DisregardGovernance
of theManagedObject
instances.- Specified by:
disregardGovernance
in interfaceGovernance<org.springframework.transaction.PlatformTransactionManager,None>
- Parameters:
context
-GovernanceContext
.- Throws:
java.lang.Throwable
- If fails to disregardGovernance
.
-
-