Interface SynchronizationListenerFactory

  • All Known Implementing Classes:
    JTASynchronizationListener

    public interface SynchronizationListenerFactory

    Purpose: Generate synchronization listener objects of the appropriate type.

    Description: This interface will be used by the AbstractTransactionController to obtain a listener that it will register against the external transaction in order to synchronize the unit of work. All new listener classes should implement this interface.

    See Also:
    AbstractSynchronizationListener
    • Method Detail

      • newSynchronizationListener

        AbstractSynchronizationListener newSynchronizationListener​(org.eclipse.persistence.internal.sessions.UnitOfWorkImpl unitOfWork,
                                                                   org.eclipse.persistence.internal.sessions.AbstractSession session,
                                                                   java.lang.Object transaction,
                                                                   AbstractTransactionController controller)
        INTERNAL: Create and return the synchronization listener object that can be registered to receive transaction notification callbacks. The type of synchronization object that gets returned will be dependent upon the transaction system