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

com.coxautodev.graphql.tools.GuiceAopProxyHandler Maven / Gradle / Ivy

There is a newer version: 5.2.4
Show newest version
package com.coxautodev.graphql.tools;

public class GuiceAopProxyHandler implements ProxyHandler {
    @Override
    public boolean canHandle(GraphQLResolver resolver) {
        return isGuiceProxy(resolver);
    }

    @Override
    public Class getTargetClass(GraphQLResolver resolver) {
        return resolver.getClass().getSuperclass();
    }

    private boolean isGuiceProxy(GraphQLResolver resolver) {
        return resolver.getClass().getName().contains("$$EnhancerByGuice$$");
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy