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

net.anotheria.anoprise.dataspace.persistence.DataspacePersistenceServiceFactory Maven / Gradle / Ivy

Go to download

Collection of utils for different enterprise class projects. Among other stuff contains Caches, Mocking, DualCrud, MetaFactory and SessionDistributorService. Visit https://opensource.anotheria.net for details.

There is a newer version: 4.0.0
Show newest version
package net.anotheria.anoprise.dataspace.persistence;

/**
 * DataspacePersistenceService factory.
 * 
 * @author abolbat
 */
public final class DataspacePersistenceServiceFactory {

	/**
	 * Default constructor.
	 */
	private DataspacePersistenceServiceFactory() {
	}

	/**
	 * Get instance of {@link DataspacePersistenceServiceImpl}.
	 * 
	 * @return {@link DataspacePersistenceServiceImpl}
	 */
	public static synchronized DataspacePersistenceService getInstance() {
		return new DataspacePersistenceServiceImpl(DataspacePersistenceConfiguration.getInstance());
	}

	/**
	 * Get instance of {@link DataspacePersistenceServiceImpl} with custom configuration.
	 * 
	 * @return {@link DataspacePersistenceServiceImpl}
	 */
	public static synchronized DataspacePersistenceService getInstance(String configurationFileName) {
		return new DataspacePersistenceServiceImpl(DataspacePersistenceConfiguration.getInstance(configurationFileName));
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy