Skip to content

Instantly share code, notes, and snippets.

View aschrijver's full-sized avatar
💭
On the Fediverse as @ smallcircles at https://social.coop

Arnold Schrijver aschrijver

💭
On the Fediverse as @ smallcircles at https://social.coop
View GitHub Profile
@aschrijver
aschrijver / IntrospectionQuery.java
Last active May 11, 2016 09:16
GraphQL introspection query in graphql-java?
interface IntrospectionQuery {
String INTROSPECTION_QUERY = "\n" +
" query IntrospectionQuery {\n" +
" __schema {\n" +
" queryType { name }\n" +
" mutationType { name }\n" +
" subscriptionType { name }\n" +
" types {\n" +
" ...FullType\n" +
@aschrijver
aschrijver / camel-spring-config.xml
Last active August 29, 2015 14:04
jBPM, Spring, Camel question
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:camel="http://camel.apache.org/schema/spring"
xmlns:kie="http://drools.org/schema/kie-spring"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd
@aschrijver
aschrijver / BsonMessage.java
Last active December 20, 2015 11:48
See also the discussion at: https://groups.google.com/forum/#!topic/vertx/R6yteLPghM8 In this gist RxMessage has an implicit parameterless constructor. It is instantiated in a generic version of the RxEventBus by using reflection from the message class that was passed in the constructor (and that equals the generic type element). Tradeoffs are t…
package org.example.vertx.eventbus;
import org.vertx.java.core.buffer.Buffer;
import io.vertx.rxcore.java.eventbus.RxMessage;
public class BsonMessage extends RxMessage<Buffer> {
// Do some interesting stuff here as well.
}