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

com.payneteasy.superfly.common.session.SessionMappingLocator Maven / Gradle / Ivy

package com.payneteasy.superfly.common.session;

import com.payneteasy.superfly.common.singleton.SingletonHolder;

/**
 * Used to locate a SessionMapping.
 * 
 * @author Roman Puchkovskiy
 */
public class SessionMappingLocator {
    private static final SingletonHolder sessionMappingSingletonHolder = new SingletonHolder() {
        @Override
        protected SessionMapping createInstance() {
            return createSessionMapping();
        }
    };

    public static SessionMapping getSessionMapping() {
        return sessionMappingSingletonHolder.getInstance();
    }

    protected static SessionMapping createSessionMapping() {
        return new HashMapBackedSessionMapping();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy