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

es.iti.wakamiti.api.extensions.LoaderContributor Maven / Gradle / Ivy

/*
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at https://mozilla.org/MPL/2.0/.
 */
package es.iti.wakamiti.api.extensions;


import es.iti.commons.jext.ExtensionPoint;

import java.util.List;
import java.util.stream.Stream;


/**
 * This interface allows adding extra class loaders from sources other
 * than java.
 *
 * @author Maria Galbis Calomarde - [email protected]
 */
@ExtensionPoint
public interface LoaderContributor extends Contributor {

    /**
     * This implementation must look for the sources in the given paths
     * and load them with the corresponding loader.
     *
     * @param discoveryPaths The paths where search the sources to load
     * @return The loaded classes
     */
    Stream> load(List discoveryPaths);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy