ruby-concurrency/thread_safe

View on GitHub
ext/thread_safe/JrubyCacheBackendService.java

Summary

Maintainability
A
0 mins
Test Coverage
package thread_safe;

import java.io.IOException;

import org.jruby.Ruby;
import org.jruby.ext.thread_safe.JRubyCacheBackendLibrary;
import org.jruby.runtime.load.BasicLibraryService;

// can't name this JRubyCacheBackendService or else JRuby doesn't pick this up
public class JrubyCacheBackendService implements BasicLibraryService {
    public boolean basicLoad(final Ruby runtime) throws IOException {
        new JRubyCacheBackendLibrary().load(runtime, false);
        return true;
    }
}