twitter-status-bot/.gems/gems/thread_safe-0.3.4/ext/thread_safe/JrubyCacheBackendService.java

16 lines
495 B
Java
Raw Normal View History

2014-09-03 08:49:59 +00:00
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;
}
}