com.jniwrapper.win32.com
Class DllClassFactory

java.lang.Object
  extended bycom.jniwrapper.win32.com.DllClassFactory

public class DllClassFactory
extends java.lang.Object

Provides the ability to load IClassFactory instance directly from the specified DLL file. This technique allows to use COM servers without registering them in the system.


Constructor Summary
DllClassFactory(java.io.File library)
           
 
Method Summary
 void freeLibrary()
          Frees this library.
 IClassFactory getClassFactory(CLSID clsid)
          Loads the class factory from this library.
protected  void load(java.io.File library)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DllClassFactory

public DllClassFactory(java.io.File library)
                throws java.io.IOException
Method Detail

load

protected void load(java.io.File library)
             throws java.io.IOException
Throws:
java.io.IOException

getClassFactory

public IClassFactory getClassFactory(CLSID clsid)
Loads the class factory from this library.

Parameters:
clsid - class id
Returns:
class factory object

freeLibrary

public void freeLibrary()
Frees this library.