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

org.visallo.web.session.VisalloSimpleOrmJettySessionManager Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
package org.visallo.web.session;

import com.google.inject.Provider;
import com.v5analytics.simpleorm.SimpleOrmJettySessionManager;
import com.v5analytics.simpleorm.SimpleOrmSession;
import org.visallo.core.bootstrap.VisalloBootstrap;
import org.visallo.core.config.Configuration;
import org.visallo.core.config.ConfigurationLoader;

public class VisalloSimpleOrmJettySessionManager extends SimpleOrmJettySessionManager {
    public VisalloSimpleOrmJettySessionManager() {
        super(createSession());
    }

    private static SimpleOrmSession createSession() {
        Configuration configuration = ConfigurationLoader.load();
        Provider simpleOrmSessionProvider = VisalloBootstrap.getConfigurableProvider(configuration, Configuration.SIMPLE_ORM_SESSION);
        return simpleOrmSessionProvider.get();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy