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

com.tietoevry.quarkus.resteasy.problem.deployment.ClasspathDetector Maven / Gradle / Ivy

There is a newer version: 3.9.0
Show newest version
package com.tietoevry.quarkus.resteasy.problem.deployment;

import java.util.function.BooleanSupplier;

class ClasspathDetector implements BooleanSupplier {

    private final String className;

    ClasspathDetector(String className) {
        this.className = className;
    }

    @Override
    public boolean getAsBoolean() {
        try {
            Class.forName(this.className);
            return true;
        } catch (ClassNotFoundException e) {
            return false;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy