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

server.core.AppInit Maven / Gradle / Ivy

There is a newer version: 8.2
Show newest version
package server.core;

import sqlg3.remote.server.SessionFactory;
import sqlg3.runtime.GlobalContext;
import sqlg3.runtime.SqlTrace;

import java.util.Set;

public interface AppInit {

    AppLogger createLogger();

    final class InitData {

        public final SessionFactory sessionFactory;
        public final GlobalContext global;
        public final Set blacklist;
        public final Set whitelist;

        public InitData(SessionFactory sessionFactory, GlobalContext global) {
            this(sessionFactory, global, null, null);
        }

        public InitData(SessionFactory sessionFactory, GlobalContext global,
                        Set blacklist, Set whitelist) {
            this.sessionFactory = sessionFactory;
            this.global = global;
            this.blacklist = blacklist;
            this.whitelist = whitelist;
        }
    }

    InitData init(String application, LoginData login, SqlTrace trace);

    void destroy();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy