Package io.lumify.web.session

Source Code of io.lumify.web.session.LumifyBigTableJettySessionManager

package io.lumify.web.session;

import com.altamiracorp.bigtable.jetty.BigTableJettySessionManager;
import com.altamiracorp.bigtable.model.ModelSession;
import io.lumify.core.bootstrap.InjectHelper;
import io.lumify.core.bootstrap.LumifyBootstrap;
import io.lumify.core.config.Configuration;
import io.lumify.core.config.ConfigurationLoader;

public class LumifyBigTableJettySessionManager extends BigTableJettySessionManager {
    public LumifyBigTableJettySessionManager() {
        super(createModelSession());
    }

    private static ModelSession createModelSession() {
        Configuration configuration = ConfigurationLoader.load();
        return InjectHelper.getInstance(ModelSession.class, LumifyBootstrap.bootstrapModuleMaker(configuration));
    }
}
TOP

Related Classes of io.lumify.web.session.LumifyBigTableJettySessionManager

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.