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

org.wildfly.apigen.invocation.ClientFactory Maven / Gradle / Ivy

There is a newer version: 0.3.4
Show newest version
package org.wildfly.apigen.invocation;

import org.jboss.as.controller.client.ModelControllerClient;
import org.wildfly.apigen.generator.Config;

/**
 * @author Heiko Braun
 * @since 29/07/15
 */
public class ClientFactory {

    public static ModelControllerClient createClient(Config config) throws Exception {
        ModelControllerClient client = ModelControllerClient.Factory.create(
                config.getHost(), config.getPort(),
                new AuthCallback(new String[] {
                        config.getUser(), config.getPass()
                })
        );
        return client;

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy