com.networknt.graphql.common.InstrumentationLoader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graphql-common Show documentation
Show all versions of graphql-common Show documentation
A shared utility module for GraphQL
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