com.payneteasy.superfly.common.store.GroupStoreLocator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of superfly-common Show documentation
Show all versions of superfly-common Show documentation
Common classes used by other Superfly libraries
package com.payneteasy.superfly.common.store;
import com.payneteasy.superfly.common.singleton.SingletonHolder;
/**
* Simple locator of a group store.
*
* @author Roman Puchkovskiy
*/
public class GroupStoreLocator {
private static SingletonHolder groupStoreHolder = new SingletonHolder() {
@Override
protected StringStore createInstance() {
return createGroupStore();
}
};
public static StringStore getGroupStore() {
return groupStoreHolder.getInstance();
}
protected static StringStore createGroupStore() {
return new SimpleStringStore();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy