Skip to content

Instantly share code, notes, and snippets.

@kdlan
kdlan / DataloaderInstrumentationState.java
Created July 24, 2018 08:48
Batch dataloader with spring-boot
package graphql.execution.instrumentation.dataloader;
import javax.servlet.http.HttpServletRequest;
import org.dataloader.DataLoaderRegistry;
import org.slf4j.Logger;
import graphql.execution.instrumentation.InstrumentationState;
import graphql.execution.instrumentation.dataloader.DataLoaderDispatcherInstrumentationState;
import graphql.execution.instrumentation.dataloader.FieldLevelTrackingApproach;
@kdlan
kdlan / ByteBufferTest.java
Created March 12, 2015 08:03
ByteBufferTest
import static org.junit.Assert.*;
import java.nio.ByteBuffer;
import org.junit.Test;
public class ByteBufferTest {
@Test
public void test1() {
@kdlan
kdlan / Test.java
Created August 1, 2013 06:06
Test for method generic type parameter info with proxy
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.lang.reflect.Type;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
public class Test {