graphql.solon.annotation.SubscriptionMappingAnnoHandler Maven / Gradle / Ivy
package graphql.solon.annotation;
import graphql.schema.DataFetcher;
import graphql.solon.fetcher.DataFetcherWrap;
import java.lang.reflect.Method;
import org.apache.commons.lang3.StringUtils;
import org.noear.solon.Utils;
import org.noear.solon.core.AppContext;
import org.noear.solon.core.BeanWrap;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @author fuzi1996
* @since 2.3
*/
public class SubscriptionMappingAnnoHandler extends
BaseSchemaMappingAnnoHandler {
private static Logger log = LoggerFactory.getLogger(SubscriptionMappingAnnoHandler.class);
public SubscriptionMappingAnnoHandler(AppContext context) {
super(context);
}
@Override
public void doExtract(BeanWrap wrap, Method method, SubscriptionMapping schemaMapping)
throws Throwable {
String typeName = this.getTypeName(wrap, method, schemaMapping);
String fieldName = this.getFieldName(wrap, method, schemaMapping);
DataFetcher
© 2015 - 2025 Weber Informatics LLC | Privacy Policy