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

com.payneteasy.superfly.common.store.GroupStoreLocator Maven / Gradle / Ivy

There is a newer version: 1.7-32
Show newest version
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