Sha256: 32ef92df922d4f31aa479e9cfabbbe164488a4c74bb8e38cff5b00c2e3444547

Contents?: true

Size: 1.49 KB

Versions: 102

Compression:

Stored size: 1.49 KB

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_base = ruby.defineModuleUnder("Base", jr_jackson);
        jr_jackson_base.defineAnnotatedMethods(JrJacksonBase.class);

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

        RubyModule jr_jackson_ruby = ruby.defineModuleUnder("Ruby", jr_jackson);
        jr_jackson_ruby.defineAnnotatedMethods(JrJacksonRuby.class);
        
        RubyModule jr_jackson_java = ruby.defineModuleUnder("Java", jr_jackson);
        jr_jackson_java.defineAnnotatedMethods(JrJacksonJava.class);
        
        RubyModule jr_jackson_saj = ruby.defineModuleUnder("Saj", jr_jackson);
        jr_jackson_saj.defineAnnotatedMethods(JrJacksonSaj.class);
        
        RubyModule jr_jackson_sch = ruby.defineModuleUnder("Sch", jr_jackson);
        jr_jackson_sch.defineAnnotatedMethods(JrJacksonSch.class);
        
        RubyClass runtimeError = ruby.getRuntimeError();
        RubyClass parseError = jr_jackson.defineClassUnder("ParseError", runtimeError, runtimeError.getAllocator());
        return true;
    }
}

Version data entries

102 entries across 90 versions & 17 rubygems

Version Path
jrjackson-0.4.18-java src/main/java/com/jrjackson/JrJacksonService.java
jrjackson-0.4.17-java src/main/java/com/jrjackson/JrJacksonService.java
jrjackson-0.4.16-java src/main/java/com/jrjackson/JrJacksonService.java
jrjackson-0.4.15-java src/main/java/com/jrjackson/JrJacksonService.java
logstash-output-scalyr-0.2.1.beta vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.14-java/src/main/java/com/jrjackson/JrJacksonService.java
logstash-output-scalyr-0.2.0 vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.14-java/src/main/java/com/jrjackson/JrJacksonService.java
logstash-output-scalyr-0.2.0.beta vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.14-java/src/main/java/com/jrjackson/JrJacksonService.java
logstash-output-scalyr-0.1.26.beta vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.14-java/src/main/java/com/jrjackson/JrJacksonService.java
logstash-output-scalyr-0.1.25.beta vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.8-java/src/main/java/com/jrjackson/JrJacksonService.java
logstash-output-scalyr-0.1.24.beta vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.8-java/src/main/java/com/jrjackson/JrJacksonService.java
logstash-output-scalyr-0.1.23.beta vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.8-java/src/main/java/com/jrjackson/JrJacksonService.java
logstash-output-scalyr-0.1.22.beta vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.8-java/src/main/java/com/jrjackson/JrJacksonService.java
logstash-output-scalyr-0.1.21.beta vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.8-java/src/main/java/com/jrjackson/JrJacksonService.java
logstash-output-scalyr-0.1.20.beta vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.8-java/src/main/java/com/jrjackson/JrJacksonService.java
logstash-output-scalyr-0.1.19.beta vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.8-java/src/main/java/com/jrjackson/JrJacksonService.java
logstash-output-scalyr-0.1.18.beta vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.8-java/src/main/java/com/jrjackson/JrJacksonService.java
logstash-output-scalyr-0.1.17.beta vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.8-java/src/main/java/com/jrjackson/JrJacksonService.java
logstash-output-scalyr-0.1.16.beta vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.8-java/src/main/java/com/jrjackson/JrJacksonService.java
logstash-output-scalyr-0.1.15.beta vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.8-java/src/main/java/com/jrjackson/JrJacksonService.java
logstash-output-scalyr-0.1.14.beta vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.8-java/src/main/java/com/jrjackson/JrJacksonService.java