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

com.tvd12.ezyhttp.server.graphql.GraphQLAbstractDataFetcher Maven / Gradle / Ivy

The newest version!
package com.tvd12.ezyhttp.server.graphql;

import java.lang.reflect.Type;

import com.tvd12.ezyfox.reflect.EzyGenerics;
import com.tvd12.ezyfox.util.EzyLoggable;

public abstract class GraphQLAbstractDataFetcher
    extends EzyLoggable
    implements GraphQLDataFetcher {

    @Override
    public Class getArgumentType() {
        try {
            Type genericSuperclass = getClass().getGenericSuperclass();
            Class[] args = EzyGenerics.getTwoGenericClassArguments(genericSuperclass);
            return args[0];
        } catch (Exception e) {
            return null;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy