com.develop.jawin
Class Bootstrap

java.lang.Object
  |
  +--com.develop.jawin.Bootstrap
Direct Known Subclasses:
WIN32Thread

public class Bootstrap
extends java.lang.Object

Native entry points used to bootstrap Jawin. All native functions are package scoped to prevent outsiders calling them. Loads native code dll. Property com.develop.jawin.lib defines native code dll name. Default name is jawin. Property java.library.path defines native code dll path. Default path is the path where jawin.jar resides.


Constructor Summary
Bootstrap()
           
 
Method Summary
(package private) static void ()
           
(package private) static int directCOM(int unknown, int vtableOffset)
          vtable call with no args, used for AddRef and Release
(package private) static void freeLibrary(int lib)
           
(package private) static int hasFTM(int unknown)
           
static void init()
          call to initialize Jawin (work actually done in static initializer)
(package private) static int loadFunction(int lib, java.lang.String function)
           
(package private) static int loadLibrary(java.lang.String lib)
           
(package private) static int marshalToGIT(int unknown, int guidToken)
           
(package private) static int queryInterface(int unknown, int guidToken)
           
(package private) static int registerGUID(byte[] guid)
          Jawin caches guids under an integer token, to avoid the overhead of marshalling GUIDs back and forth
(package private) static int registerRecord(byte[] guidTlb, byte[] guidRec)
           
(package private) static void revokeGIT(int peer)
          Revokes a GIT entry.
(package private) static int unmarshalFromGIT(int peer, int guidToken)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

Bootstrap

public Bootstrap()
Method Detail

static void ()

init

public static void init()
call to initialize Jawin (work actually done in static initializer)

loadLibrary

static int loadLibrary(java.lang.String lib)
                throws COMException

loadFunction

static int loadFunction(int lib,
                        java.lang.String function)
                 throws COMException

freeLibrary

static void freeLibrary(int lib)

revokeGIT

static void revokeGIT(int peer)
Revokes a GIT entry. Called only by IdentityManager

registerGUID

static int registerGUID(byte[] guid)
Jawin caches guids under an integer token, to avoid the overhead of marshalling GUIDs back and forth

registerRecord

static int registerRecord(byte[] guidTlb,
                          byte[] guidRec)

queryInterface

static int queryInterface(int unknown,
                          int guidToken)

unmarshalFromGIT

static int unmarshalFromGIT(int peer,
                            int guidToken)

marshalToGIT

static int marshalToGIT(int unknown,
                        int guidToken)

hasFTM

static int hasFTM(int unknown)

directCOM

static int directCOM(int unknown,
                     int vtableOffset)
vtable call with no args, used for AddRef and Release


New Jawin designed by Vitally Shelest. This product includes software developed by the DevelopMentor OpenSource Project (http://www.develop.com/OpenSource).