Sha256: d373156f58d8186d45ec0fc5c1d321dd45712ee1ac90447badc64e3a5da32462

Contents?: true

Size: 745 Bytes

Versions: 6

Compression:

Stored size: 745 Bytes

Contents

package com.jrjackson;

import org.jruby.Ruby;
import org.jruby.RubyModule;
import org.jruby.RubyClass;
import org.jruby.runtime.load.BasicLibraryService;

import java.io.IOException;

public class JrJacksonService implements BasicLibraryService {

    @Override
    public boolean basicLoad(final Ruby ruby) throws IOException {
        RubyModule jr_jackson = ruby.defineModule("JrJackson");

        RubyModule jr_jackson_raw = ruby.defineModuleUnder("Raw", jr_jackson);
        jr_jackson_raw.defineAnnotatedMethods(JrJacksonRaw.class);

        RubyClass runtimeError = ruby.getRuntimeError();
        RubyClass parseError = jr_jackson.defineClassUnder("ParseError", runtimeError, runtimeError.getAllocator());
        return true;
    }
}

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
able-neo4j-1.0.0 vendor/bundle/jruby/1.9/gems/jrjackson-0.2.9/src/main/java/com/jrjackson/JrJacksonService.java
logstash-input-beats-0.9.2 vendor/jruby/1.9/gems/jrjackson-0.2.9/src/main/java/com/jrjackson/JrJacksonService.java
logstash-input-beats-0.9.1 vendor/jruby/1.9/gems/jrjackson-0.2.9/src/main/java/com/jrjackson/JrJacksonService.java
jrjackson-0.2.9 src/main/java/com/jrjackson/JrJacksonService.java
jrjackson-0.2.8 src/main/java/com/jrjackson/JrJacksonService.java
jrjackson-0.2.7 src/main/java/com/jrjackson/JrJacksonService.java