java.com.graphql_java_generator.client.RequestExecutionSpringReactiveImpl Maven / Gradle / Ivy
The newest version!
/**
*
*/
package com.graphql_java_generator.client;
import java.util.Map;
import org.springframework.stereotype.Component;
import com.graphql_java_generator.client.request.AbstractGraphQLRequest;
import com.graphql_java_generator.exception.GraphQLRequestExecutionException;
/**
* This is the default implementation for the {@link RequestExecution} This implementation has been added in version
* 1.12.
* It is loaded by the {@link SpringConfiguration} Spring configuration class, that is generated with the client code.
*
* @since 1.12
* @author etienne-sf
*/
@Component
@Deprecated
public class RequestExecutionSpringReactiveImpl implements RequestExecution {
@Override
public R execute(AbstractGraphQLRequest graphQLRequest,
Map parameters, Class dataResponseType) throws GraphQLRequestExecutionException {
return graphQLRequest.exec(dataResponseType, parameters);
}
@Override
public SubscriptionClient execute(AbstractGraphQLRequest graphQLRequest,
Map parameters, SubscriptionCallback subscriptionCallback, Class subscriptionType,
Class messageType) throws GraphQLRequestExecutionException {
return graphQLRequest.exec(parameters, subscriptionCallback, subscriptionType, messageType);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy