com.jniwrapper.win32.com.impl
Class IClassFactory2Impl

java.lang.Object
  extended bycom.jniwrapper.Parameter
      extended bycom.jniwrapper.win32.com.impl.IUnknownImpl
          extended bycom.jniwrapper.win32.com.impl.IClassFactoryImpl
              extended bycom.jniwrapper.win32.com.impl.IClassFactory2Impl
All Implemented Interfaces:
AutoDeleteParameter, IClassFactory, IClassFactory2, IUnknown, PointerParameter

public class IClassFactory2Impl
extends IClassFactoryImpl
implements IClassFactory2

Represents COM interface IClassFactory2.


Nested Class Summary
 
Nested classes inherited from class com.jniwrapper.win32.com.impl.IUnknownImpl
IUnknownImpl.MemoryBufferImpl
 
Field Summary
static java.lang.String INTERFACE_IDENTIFIER
           
 
Fields inherited from class com.jniwrapper.win32.com.impl.IUnknownImpl
DebugComfyJ, LICENSE_TYPE, PTR_NULL
 
Fields inherited from class com.jniwrapper.Parameter
V
 
Constructor Summary
IClassFactory2Impl()
           
IClassFactory2Impl(CLSID clsid, ClsCtx dwClsContext)
           
IClassFactory2Impl(CLSID clsid, IUnknown pUnkOuter, ClsCtx dwClsContext)
           
IClassFactory2Impl(IUnknown that)
           
IClassFactory2Impl(IUnknownImpl that)
           
 
Method Summary
 java.lang.Object clone()
           
 void createInstanceLic(IUnknown outer, IUnknown reserved, IID iid, BStr bstrKey, IUnknown result)
          Creates an instance of the licensed object given a license key from IClassFactory2.requestLicKey(com.jniwrapper.UInt32, com.jniwrapper.win32.automation.types.BStr)
 IID getIID()
           
 void getLicInfo(LicInfo licInfo)
          Fills a licInfo structure with information on the licensing capabilities of this class factory.
 void requestLicKey(UInt32 reserved, BStr key)
          Creates and returns a license key that the caller can save and use later in calls to IClassFactory2.createInstanceLic(IUnknown, IUnknown, com.jniwrapper.win32.com.types.IID, com.jniwrapper.win32.automation.types.BStr, IUnknown).
 
Methods inherited from class com.jniwrapper.win32.com.impl.IClassFactoryImpl
createInstance, createInstance, lockServer
 
Methods inherited from class com.jniwrapper.win32.com.impl.IUnknownImpl
acceptIOPerformer, addRef, asVoidPointer, dumpVTBL, equals, fromVoidPointer, getDebugInfo, getInterfaceIdentifier, getLength, hashCode, invokeStandardVirtualMethod, invokeStandardVirtualMethod, invokeStandardVirtualMethod, invokeStandardVirtualMethod, invokeStandardVirtualMethod, invokeStandardVirtualMethod, invokeStandardVirtualMethod, invokeVirtualMethod, invokeVirtualMethod, invokeVirtualMethod, invokeVirtualMethod, invokeVirtualMethod, invokeVirtualMethod, isAutoDelete, isNull, isSameObject, queryInterface, queryInterface, read, release, setAutoDelete, setNull, setValue, write
 
Methods inherited from class com.jniwrapper.Parameter
, a, a, asReturnValue, b, dataBufferAssigned, getAlignedLength, getAlignmentRequirement, getDataBuffer, getDataBufferOffset, indent, pop, push, read, read, setDataBuffer, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jniwrapper.win32.com.IClassFactory
createInstance, createInstance, lockServer
 
Methods inherited from interface com.jniwrapper.win32.com.IUnknown
addRef, isNull, queryInterface, release, setNull
 
Methods inherited from interface com.jniwrapper.AutoDeleteParameter
isAutoDelete, setAutoDelete
 

Field Detail

INTERFACE_IDENTIFIER

public static final java.lang.String INTERFACE_IDENTIFIER
See Also:
Constant Field Values
Constructor Detail

IClassFactory2Impl

public IClassFactory2Impl()

IClassFactory2Impl

public IClassFactory2Impl(IUnknownImpl that)
                   throws ComException

IClassFactory2Impl

public IClassFactory2Impl(IUnknown that)

IClassFactory2Impl

public IClassFactory2Impl(CLSID clsid,
                          ClsCtx dwClsContext)
                   throws ComException

IClassFactory2Impl

public IClassFactory2Impl(CLSID clsid,
                          IUnknown pUnkOuter,
                          ClsCtx dwClsContext)
                   throws ComException
Method Detail

getLicInfo

public void getLicInfo(LicInfo licInfo)
                throws ComException
Description copied from interface: IClassFactory2
Fills a licInfo structure with information on the licensing capabilities of this class factory.

Specified by:
getLicInfo in interface IClassFactory2
Parameters:
licInfo - [out] structure to be filled on output.
Throws:
ComException

requestLicKey

public void requestLicKey(UInt32 reserved,
                          BStr key)
                   throws ComException
Description copied from interface: IClassFactory2
Creates and returns a license key that the caller can save and use later in calls to IClassFactory2.createInstanceLic(IUnknown, IUnknown, com.jniwrapper.win32.com.types.IID, com.jniwrapper.win32.automation.types.BStr, IUnknown).

Specified by:
requestLicKey in interface IClassFactory2
Parameters:
reserved - Reserved. Must be zero.
key - [out]parameter that receives the license key.
Throws:
ComException

createInstanceLic

public void createInstanceLic(IUnknown outer,
                              IUnknown reserved,
                              IID iid,
                              BStr bstrKey,
                              IUnknown result)
                       throws ComException
Description copied from interface: IClassFactory2
Creates an instance of the licensed object given a license key from IClassFactory2.requestLicKey(com.jniwrapper.UInt32, com.jniwrapper.win32.automation.types.BStr)

Specified by:
createInstanceLic in interface IClassFactory2
Parameters:
outer - [in] parameter, points to controlling interface of an aggregate, or null if the object isn't being created as part of an aggregate.
reserved - Unused. Must be null.
iid - identifier of the interface to be used to communicate with the newly created object.
bstrKey - license key previously obtained from IClassFactory2.requestLicKey(com.jniwrapper.UInt32, com.jniwrapper.win32.automation.types.BStr)
result - [out] parameter, instance implementing a required interface.
Throws:
ComException

getIID

public IID getIID()
Overrides:
getIID in class IClassFactoryImpl

clone

public java.lang.Object clone()
Overrides:
clone in class IClassFactoryImpl