newInstance

public static EntityLifecycleMonitor<I> newInstance<I>(Repository<I, ? extends Object> repository, I id)

Creates a new instance of EntityLifecycleMonitor.

Parameters

repository

the repository of the entity under transaction

id

the entity ID