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

io.vertx.tp.crud.init.IxPin Maven / Gradle / Ivy

package io.vertx.tp.crud.init;

import io.vertx.tp.crud.atom.IxConfig;
import io.vertx.tp.crud.refine.Ix;
import io.vertx.up.aiki.UxJooq;
import io.vertx.up.atom.Rule;
import io.vertx.up.log.Annal;

import java.util.List;
import java.util.concurrent.ConcurrentMap;

/*
 * Init Plugin for `init` static life
 */
public class IxPin {

    private static final Annal LOGGER = Annal.get(IxPin.class);

    public static void init() {
        Ix.infoInit(LOGGER, "IxDao...");
        /* Dao Init */
        IxDao.init();
        Ix.infoInit(LOGGER, "IxValidator...");
        /* Validator Init */
        IxValidator.init();
    }

    public static IxConfig getActor(final String actor) {
        return IxDao.get(actor);
    }

    public static UxJooq getDao(final IxConfig config) {
        return IxDao.get(config);
    }

    public static ConcurrentMap> getRules(final String actor) {
        return IxValidator.getRules(actor);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy