File: JrubyCacheBackendService.java

package info (click to toggle)
ruby-thread-safe 0.3.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, trixie
  • size: 712 kB
  • sloc: java: 5,458; ruby: 2,917; makefile: 6
file content (15 lines) | stat: -rw-r--r-- 495 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
    }
}