
org.seedstack.seed.transaction.internal.LocalTransactionManager Maven / Gradle / Ivy
The newest version!
/**
* Copyright (c) 2013-2015 by The SeedStack authors. All rights reserved.
*
* This file is part of SeedStack, An enterprise-oriented full development stack.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package org.seedstack.seed.transaction.internal;
import org.seedstack.seed.core.api.SeedException;
import org.seedstack.seed.transaction.api.Propagation;
import org.seedstack.seed.transaction.spi.TransactionHandler;
import org.seedstack.seed.transaction.spi.TransactionMetadata;
import org.aopalliance.intercept.MethodInvocation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* This transaction manager implements local transactions behavior, i.e. transactions that cannot span on multiple
* resources.
*
* @author [email protected]
*/
public class LocalTransactionManager extends AbstractTransactionManager {
private static final Logger LOGGER = LoggerFactory.getLogger(LocalTransactionManager.class);
@Override
protected Object doMethodInterception(String logPrefix, MethodInvocation invocation, TransactionMetadata transactionMetadata, TransactionHandler
© 2015 - 2025 Weber Informatics LLC | Privacy Policy