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

com.webank.wecross.stub.StubFactory Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
package com.webank.wecross.stub;

import java.util.Map;

public interface StubFactory {
    public String version = "v1.0.0";

    /**
     * init a stub
     *
     * @param context
     */
    public void init(WeCrossContext context);

    /**
     * create a driver
     *
     * @return
     */
    public Driver newDriver();

    /**
     * create a connection
     *
     * @return Connection
     */
    public Connection newConnection(String path);

    /**
     * use sec and cert to new account
     *
     * @param properties
     * @return
     */
    public Account newAccount(Map properties);

    /**
     * generate account
     *
     * @param path
     * @param args
     */
    public void generateAccount(String path, String[] args);

    /**
     * generate stub
     *
     * @param path
     * @param args
     */
    public void generateConnection(String path, String[] args);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy