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

io.micronaut.flyway.graalvm.FeatureDetectorSubstitutions Maven / Gradle / Ivy

There is a newer version: 7.6.1
Show newest version
/*
 * Copyright 2017-2020 original authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package io.micronaut.flyway.graalvm;

import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.TargetClass;
import io.micronaut.core.annotation.Internal;

/**
 * FeatureDetector substitution.
 *
 * Forked from the Quarkus: https://github.com/quarkusio/quarkus/blob/38280358d8cf04b91dad7ef5a9d463823f8ae675/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/graal/FeatureDetectorSubstitutions.java
 *
 * @author Iván López
 * @since 2.0.0
 */
@Substitute
@Internal
@TargetClass(className = "org.flywaydb.core.internal.util.FeatureDetector")
final class FeatureDetectorSubstitutions {

    @Substitute
    public FeatureDetectorSubstitutions(ClassLoader classLoader) {
    }

    @Substitute
    public boolean isApacheCommonsLoggingAvailable() {
        return false;
    }

    @Substitute
    public boolean isSlf4jAvailable() {
        return true;
    }

    @Substitute
    public boolean isJBossVFSv2Available() {
        return false;
    }

    @Substitute
    public boolean isJBossVFSv3Available() {
        return false;
    }

    @Substitute
    public boolean isOsgiFrameworkAvailable() {
        return false;
    }

    @Substitute
    public boolean isAndroidAvailable() {
        return false;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy