Package mungbean.rhino

Source Code of mungbean.rhino.MungbeanConfiguration

package mungbean.rhino;

import java.util.ArrayList;
import java.util.List;

import mungbean.Authentication;
import mungbean.DBOperationExecutor;
import mungbean.Server;
import mungbean.Settings;
import mungbean.SingleNodeDbOperationExecutor;

public class MungbeanConfiguration {
    private final DBOperationExecutor executor;

    public MungbeanConfiguration(String host, int port) {
        List<Authentication> auths = new ArrayList<Authentication>();
        Settings settings = new Settings();
        executor = new SingleNodeDbOperationExecutor(settings, new Server(host, port, auths.toArray(new Authentication[auths.size()])));
    }

    public DBOperationExecutor executor() {
        return executor;
    }
}
TOP

Related Classes of mungbean.rhino.MungbeanConfiguration

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.