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

graphql.kickstart.tools.proxy.GuiceAopProxyHandler Maven / Gradle / Ivy

There is a newer version: 14.0.0
Show newest version
package graphql.kickstart.tools.proxy;

import graphql.kickstart.tools.GraphQLResolver;

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 - 2024 Weber Informatics LLC | Privacy Policy