java.lang.Object
net.odoframework.container.tx.TxScope
public class TxScope extends Object
-
Constructor Summary
Constructors Constructor Description TxScope() -
Method Summary
Modifier and Type Method Description voidadd(TxResource resource)static voidaddResource(TxResource txResource)static <T> Tdefine(String name, Supplier<T> runnable)static voidendScope()static Optional<TxScope>get(String name)static Optional<Pair<String,TxScope>>getCurrentScope()Set<TxResource>getResources()static TxScopestartScope(String name)
-
Constructor Details
-
TxScope
public TxScope()
-
-
Method Details
-
getCurrentScope
-
startScope
-
endScope
public static void endScope() -
define
-
addResource
-
get
-
add
-
getResources
-