org.hibernate.jpa.event.spi.jpa.ListenerFactory Maven / Gradle / Ivy
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.jpa.event.spi.jpa;
/**
* Contract for building instances of JPA callback listener classes.
*
* Listener instances should be uniqued by Class such that the same instance is
* returned for any calls to {@link #buildListener} with the same class.
*
* @see javax.persistence.EntityListeners
*
* @author Steve Ebersole
*/
public interface ListenerFactory {
Listener buildListener(Class listenerClass);
void release();
}