net.anotheria.anoprise.dataspace.persistence.DataspacePersistenceServiceFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ano-prise Show documentation
Show all versions of ano-prise Show documentation
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.
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