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

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

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

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

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

    private boolean isWeldProxy(GraphQLResolver resolver) {
        return resolver.getClass().getName().contains("$Proxy$_$$_WeldClientProxy");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy