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

com.catchpoint.trace.instrument.integrations.spring.web.SpringWebHelper Maven / Gradle / Ivy

There is a newer version: 0.0.20
Show newest version
package com.catchpoint.trace.instrument.integrations.spring.web;

import com.catchpoint.trace.common.util.PropertyUtils;

/**
 * @author serkan
 */
public final class SpringWebHelper {

    private SpringWebHelper() {
    }

    public static boolean isEnabled() {
        Boolean disabled =
                PropertyUtils.getBooleanProperty("catchpoint.trace.integrations.spring.disable");
        // Disabled flag is explicitly set
        if (disabled != null) {
            return !disabled;
        }
        // If disabled flag is not set explicitly for this integration, check on global flag
        return !PropertyUtils.getBooleanProperty(
                "catchpoint.trace.integrations.disable", false);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy