com.payneteasy.superfly.common.store.UserStoreLocator Maven / Gradle / Ivy
package com.payneteasy.superfly.common.store;
import com.payneteasy.superfly.common.singleton.SingletonHolder;
/**
* Simple {@link UserStore} locator.
*
* @author Roman Puchkovskiy
*/
public class UserStoreLocator {
private static SingletonHolder userStoreHolder = new SingletonHolder() {
@Override
protected UserStore createInstance() {
return createUserStore();
}
};
public static UserStore getUserStore() {
return userStoreHolder.getInstance();
}
protected static UserStore createUserStore() {
return new SimpleUserStore();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy