Sha256: 32823a19d5504c39b5fb8a49545ed3592afb3cef4a0d54210bfa28cd2b705b48

Contents?: true

Size: 892 Bytes

Versions: 6

Compression:

Stored size: 892 Bytes

Contents

package win32ole;

import org.racob.com.LibraryLoader;
import java.io.IOException;import java.lang.ref.WeakReference;
import org.jruby.Ruby;
import org.jruby.RubyClass;
import org.jruby.ext.win32ole.RubyWIN32OLE;
import org.jruby.runtime.load.BasicLibraryService;

public class Win32oleService implements BasicLibraryService {
    static WeakReference<RubyClass> win32oleClass;

    public boolean basicLoad(Ruby runtime) throws IOException {
        LibraryLoader.loadLibrary();
        RubyClass object = runtime.getObject();
        RubyClass win32ole = runtime.defineClass("WIN32OLE", object,
                RubyWIN32OLE.WIN32OLE_ALLOCATOR);

        win32ole.defineAnnotatedMethods(RubyWIN32OLE.class);

        win32oleClass = new WeakReference<RubyClass>(win32ole);

        return true;
    }

    public static RubyClass getMetaClass() {
        return win32oleClass.get();
    }
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jruby-win32ole-0.8.5 src/win32ole/Win32oleService.java
jruby-win32ole-0.8.4 src/win32ole/Win32oleService.java
jruby-win32ole-0.8.3 src/win32ole/Win32oleService.java
jruby-win32ole-0.8.2 src/win32ole/Win32oleService.java
jruby-win32ole-0.8.1 src/win32ole/Win32oleService.java
jruby-win32ole-0.8.0 src/win32ole/Win32oleService.java