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

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

There is a newer version: 13.1.1
Show newest version
package graphql.kickstart.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 - 2024 Weber Informatics LLC | Privacy Policy