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

org.zalando.riptide.spring.Dependencies Maven / Gradle / Ivy

package org.zalando.riptide.spring;

import static org.springframework.util.ClassUtils.getDefaultClassLoader;
import static org.springframework.util.ClassUtils.isPresent;

final class Dependencies {

    private Dependencies() {
        
    }

    static void ifPresent(final String name, final Runnable runnable) {
        if (isPresent(name, getDefaultClassLoader())) {
            runnable.run();
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy