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

org.aksw.jenax.graphql.sparql.GraphQlResolverImplLazy Maven / Gradle / Ivy

package org.aksw.jenax.graphql.sparql;

import java.util.concurrent.Callable;

import org.aksw.jenax.graphql.impl.common.ComputeOnce;

import com.google.common.util.concurrent.ListenableFuture;

public class GraphQlResolverImplLazy
    implements GraphQlResolverWrapper
{
    protected ComputeOnce delegateCreation;

    public GraphQlResolverImplLazy(ComputeOnce delegateCreation) {
        super();
        this.delegateCreation = delegateCreation;
    }

    public static GraphQlResolver of(Callable> delegateCreation) {
        return new GraphQlResolverImplLazy(ComputeOnce.ofWithLogging("GraphQlResolver", delegateCreation));
    }

    @Override
    public GraphQlResolver getDelegate() {
        return delegateCreation.getWithLogging();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy