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

io.vertx.up.extension.pointer.PluginLoad Maven / Gradle / Ivy

The newest version!
package io.vertx.up.extension.pointer;

import io.aeon.experiment.mixture.HLoad;
import io.horizon.specification.modeler.HAtom;
import io.horizon.uca.cache.Cc;
import io.vertx.up.util.Ut;

/**
 * @author Lang
 */
class PluginLoad {
    /*
     * Plugin for HLoad / HED
     */
    private static final String ATOM = "atom";
    private static final Cc CC_PLUGIN_ATOM = Cc.openThread();

    static HAtom atom(final String namespace, final String identifier) {
        return Plugin.mountPlugin(ATOM, (atomCls, config) -> {
            final HLoad loader = CC_PLUGIN_ATOM.pick(() -> Ut.instance(atomCls));
            /*
             * Bind configuration of
             * atom:
             *   component:
             *   config
             */
            return loader.atom(namespace, identifier);
        }, () -> null);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy