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

com.github.lontime.extjobrunr.provider.AbstractProvider Maven / Gradle / Ivy

package com.github.lontime.extjobrunr.provider;

import com.github.lontime.base.commonj.components.AbstractComponentLifecycle;
import com.github.lontime.extjobrunr.container.Container;

/**
 * AbstractProvider.
 * @author lontime
 * @since 1.0
 */
public abstract class AbstractProvider extends AbstractComponentLifecycle implements Provider {

    private final Container container;

    public AbstractProvider() {
        this.container = new Container();
    }

    @Override
    public void initialize() {
        container.initialize();
    }

    @Override
    public void start() {
        container.start();
    }

    @Override
    public void stop() {
        container.stop();
    }

    @Override
    public void destroy() {
        container.destroy();
    }

    @Override
    public void close() {
        reentrantStopAndRemoveHooklet();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy