
org.seedstack.seed.transaction.spi.TransactionalLink 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.spi;
/**
* This interface provides a way to access the instance of a transacted class. As an example, a different JPA
* EntityManager must be provided for each thread and each transaction inside the current thread. A transactional link
* is meant to implement this behavior.
*
* @param the class representing the transacted resource.
* @author [email protected]
* @author [email protected]
*/
public interface TransactionalLink {
/**
* Retrieve the correct instance of the class representing the transacted resource.
*
* @return the T instance.
*/
T get();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy