All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.service.internal.StandardSessionFactoryServiceInitiators Maven / Gradle / Ivy

There is a newer version: 7.0.0.Alpha1
Show newest version
/*
 * 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.service.internal;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import org.hibernate.engine.query.spi.NativeQueryInterpreterInitiator;
import org.hibernate.engine.spi.CacheInitiator;
import org.hibernate.event.service.internal.EventListenerServiceInitiator;
import org.hibernate.service.spi.SessionFactoryServiceInitiator;
import org.hibernate.stat.internal.StatisticsInitiator;

/**
 * Central definition of the standard set of initiators defined by Hibernate for the
 * {@link org.hibernate.service.spi.SessionFactoryServiceRegistry}
 *
 * @author Steve Ebersole
 */
public class StandardSessionFactoryServiceInitiators {
	public static List LIST = buildStandardServiceInitiatorList();

	private static List buildStandardServiceInitiatorList() {
		final List serviceInitiators = new ArrayList<>();

		serviceInitiators.add( EventListenerServiceInitiator.INSTANCE );
		serviceInitiators.add( StatisticsInitiator.INSTANCE );
		serviceInitiators.add( CacheInitiator.INSTANCE );

		serviceInitiators.add( NativeQueryInterpreterInitiator.INSTANCE );

		return Collections.unmodifiableList( serviceInitiators );
	}

	private StandardSessionFactoryServiceInitiators() {
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy