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

org.opendolphin.util.DirectExecutor Maven / Gradle / Ivy

Go to download

The Dolphin Platform is a framework that implements the presentation model pattern and provides amodern way to create enterprise applications. The Platform provides several client implementations that all canbe used in combination with a general sever API.

There is a newer version: 0.17.0
Show newest version
package org.opendolphin.util;

import java.util.Objects;
import java.util.concurrent.Executor;

public class DirectExecutor implements Executor {

    private final static DirectExecutor INSTANCE = new DirectExecutor();

    private DirectExecutor() {
    }

    @Override
    public void execute(Runnable command) {
        Objects.requireNonNull(command).run();
    }

    public static DirectExecutor getInstance() {
        return INSTANCE;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy