Package thread_safe

Source Code of thread_safe.JrubyCacheBackendService

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;
    }
}
TOP

Related Classes of thread_safe.JrubyCacheBackendService

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.