com.develop.jawin
Class IdentityManager

java.lang.Object
  |
  +--com.develop.jawin.IdentityManager

public class IdentityManager
extends java.lang.Object

COM helper class. Loads native code dll.


Field Summary
private static java.util.HashMap guidToClass
           
private static java.util.HashMap idents
           
private static java.lang.Object lock
           
static boolean traceRefs
          property to trace
 
Constructor Summary
IdentityManager()
           
 
Method Summary
static COMPtr createDirectRef(COMPtr src)
           
static COMPtr createGITRef(COMPtr src)
           
static void DecRef(int peer)
          decrements the cached ref count for the proxy.
static COMPtr getCOMPtr(byte[] stream, int offset, GUID iid)
           
static COMPtr getCOMPtr(int peer, int unk, GUID iid)
           
static COMPtr getCOMPtr(LittleEndianInputStream leis, GUID iid)
           
(package private) static Identity IncRef(int peer)
          increments the cached ref count for the proxy.
private static COMPtr newCOMPtr(java.lang.Class template)
           
static COMPtr newListener(java.lang.Class newItf, java.lang.Object src)
           
static COMPtr queryInterface(java.lang.Class newItf, COMPtr src)
           
static int registerProxy(GUID iid, java.lang.Class proxy)
          Each COM iid must have a proxy class registered with the system.
private static void registerProxyPrototype(GUID iid, java.lang.Class proxy)
           
static int registerRecord(GUID iidTlb, GUID iidRec, java.lang.Class proxy)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

traceRefs

public static final boolean traceRefs
property to trace

idents

private static java.util.HashMap idents

lock

private static java.lang.Object lock

guidToClass

private static java.util.HashMap guidToClass
Constructor Detail

IdentityManager

public IdentityManager()
Method Detail

queryInterface

public static COMPtr queryInterface(java.lang.Class newItf,
                                    COMPtr src)
Parameters:
newItf -  
src -  
Returns:
 

newListener

public static COMPtr newListener(java.lang.Class newItf,
                                 java.lang.Object src)
                          throws COMException
Parameters:
newItf -  
src -  
Returns:
 
Throws:
COMException -  

newCOMPtr

private static COMPtr newCOMPtr(java.lang.Class template)

createGITRef

public static COMPtr createGITRef(COMPtr src)
Parameters:
src -  
Returns:
 

createDirectRef

public static COMPtr createDirectRef(COMPtr src)
Parameters:
src -  
Returns:
 

IncRef

static Identity IncRef(int peer)
increments the cached ref count for the proxy. If identity does not exist yet, create it.

DecRef

public static void DecRef(int peer)
decrements the cached ref count for the proxy. If count reaches zero, revoke the GIT pointer

getCOMPtr

public static COMPtr getCOMPtr(int peer,
                               int unk,
                               GUID iid)
Parameters:
peer -  
unk -  
iid -  
Returns:
 

getCOMPtr

public static COMPtr getCOMPtr(LittleEndianInputStream leis,
                               GUID iid)
                        throws java.io.IOException,
                               COMException
Parameters:
leis -  
iid -  
Returns:
 
Throws:
java.io.IOException -  
COMException -  

getCOMPtr

public static COMPtr getCOMPtr(byte[] stream,
                               int offset,
                               GUID iid)
                        throws COMException
Parameters:
stream -  
offset -  
iid -  
Returns:
 
Throws:
COMException -  

registerProxyPrototype

private static void registerProxyPrototype(GUID iid,
                                           java.lang.Class proxy)

registerProxy

public static int registerProxy(GUID iid,
                                java.lang.Class proxy)
Each COM iid must have a proxy class registered with the system.
Parameters:
iid -  
proxy -  
Returns:
 

registerRecord

public static int registerRecord(GUID iidTlb,
                                 GUID iidRec,
                                 java.lang.Class proxy)


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