Class UnitOfWorkAwareConnectionProviderWrapper

java.lang.Object
org.axonframework.common.jdbc.UnitOfWorkAwareConnectionProviderWrapper
All Implemented Interfaces:
ConnectionProvider

public class UnitOfWorkAwareConnectionProviderWrapper extends Object implements ConnectionProvider
Wrapper for a ConnectionProvider that checks if a connection is already attached to the Unit of Work, favoring that connection over creating a new one.
Since:
2.2
Author:
Allard Buijze
  • Constructor Details

    • UnitOfWorkAwareConnectionProviderWrapper

      public UnitOfWorkAwareConnectionProviderWrapper(ConnectionProvider delegate)
      Initializes a ConnectionProvider, using given delegate to create a new instance, when on is not already attached to the Unit of Work.
      Parameters:
      delegate - The connection provider creating connections, when required
  • Method Details