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

com.networknt.graphql.common.InstrumentationLoader Maven / Gradle / Ivy

There is a newer version: 2.1.38
Show newest version
package com.networknt.graphql.common;

import com.networknt.service.SingletonServiceFactory;
import graphql.execution.instrumentation.Instrumentation;


/**
 * @author Nicholas Azar
 * Created on April 09, 2018
 */
public class InstrumentationLoader {

    public static Instrumentation graphqlInstrumentation;
    public static Instrumentation graphqlSubscriptionInstrumentation;

    static {
        InstrumentationProvider instrumentationProvider = SingletonServiceFactory.getBean(InstrumentationProvider.class);
        if (instrumentationProvider != null) {
            graphqlInstrumentation = instrumentationProvider.getGraphqlInstrumentation();
            graphqlSubscriptionInstrumentation = instrumentationProvider.getGraphqlSubscriptionInstrumentation();
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy