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

io.termd.core.readline.Functions Maven / Gradle / Ivy

Go to download

An open source terminal daemon library providing terminal handling in Java, back ported to Alibaba by core engine team to support running on JDK 6+.

The newest version!
package io.termd.core.readline;

import io.termd.core.util.Helper;

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

/**
 * @author bw on 25/10/2016.
 */
public class Functions {
    /**
     * Load the defaults function via the {@link java.util.ServiceLoader} SPI.
     *
     * @return the loaded function
     */
    public static List loadDefaults() {
        List functions = new ArrayList();
        for (io.termd.core.readline.Function function : Helper.loadServices(Thread.currentThread().getContextClassLoader(), io.termd.core.readline.Function.class)) {
            functions.add(function);
        }
        return functions;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy