|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jniwrapper.win32.com.server.IUnknownServer com.jniwrapper.win32.com.server.IClassFactoryServer
This class provides default server-side implementation of the IClassFactory
interface.
Field Summary |
Fields inherited from interface com.jniwrapper.win32.com.IClassFactory |
INTERFACE_IDENTIFIER |
Constructor Summary | |
IClassFactoryServer(java.lang.Class instanceClass)
Creates the class factory for the specified COM server. |
Method Summary | |
IClassFactory |
createIClassFactory()
|
void |
createInstance(IUnknown outer,
IID iid,
IUnknown result)
Creates an uninitialized object. |
void |
createInstance(IUnknown outer,
java.lang.String stringIID,
IUnknown result)
Creates an uninitialized object. |
protected void |
destroy()
|
protected void |
doDestroy()
|
IID |
getDefaultInterfaceIID()
Gets default interface. |
IUnknownServer |
getInstanceByInterfacePointer(Pointer.Void ptrInterface)
|
java.lang.Class |
getInstanceClass()
|
java.util.Stack |
getInstances()
Returns stack of server instances. |
java.util.Map |
getMapIIDToVTBLPointer()
Returns java.util.Map that contains associations between
virtual tables and IIDs of corresponding interfaces. |
void |
lockServer(VariantBool fLock)
Locks server. |
void |
registerInstance(IUnknownServer instance)
|
void |
registerInterface(java.lang.Class interfaceClass,
IUnknownVTBL intfVTBL)
Associates a virtual table with interface. |
void |
setDefaultInterface(java.lang.Class interfaceClass)
Sets default interface. |
void |
unregisterInstance(IUnknownServer instance)
|
Methods inherited from class com.jniwrapper.win32.com.server.IUnknownServer |
addRef, addRefAggregated, create, doQueryInterface, getClassImpl, getRefCount, isAutoDelete, isNull, queryInterface, queryInterfaceAggregated, release, releaseAggregated, setAutoDelete, setNull |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.jniwrapper.win32.com.IUnknown |
addRef, isNull, queryInterface, release, setNull |
Methods inherited from interface com.jniwrapper.AutoDeleteParameter |
isAutoDelete, setAutoDelete |
Constructor Detail |
public IClassFactoryServer(java.lang.Class instanceClass)
instanceClass
- specifies COM server.Method Detail |
public java.util.Map getMapIIDToVTBLPointer()
java.util.Map
that contains associations between
virtual tables and IIDs of corresponding interfaces.
getMapIIDToVTBLPointer
in interface CoClassMetaInfo
java.util.Map
that contains associations between
virtual tables and IIDs of corresponding interfaces.public void registerInterface(java.lang.Class interfaceClass, IUnknownVTBL intfVTBL)
registerInterface
in interface CoClassMetaInfo
interfaceClass
- java class for COM interface.intfVTBL
- an instance of the virtual table.public void setDefaultInterface(java.lang.Class interfaceClass)
setDefaultInterface
in interface CoClassMetaInfo
interfaceClass
- java class for interface.public IID getDefaultInterfaceIID()
getDefaultInterfaceIID
in interface CoClassMetaInfo
public void registerInstance(IUnknownServer instance)
registerInstance
in interface CoClassMetaInfo
public void unregisterInstance(IUnknownServer instance)
unregisterInstance
in interface CoClassMetaInfo
public IUnknownServer getInstanceByInterfacePointer(Pointer.Void ptrInterface)
getInstanceByInterfacePointer
in interface CoClassMetaInfo
public void createInstance(IUnknown outer, java.lang.String stringIID, IUnknown result) throws ComException
IClassFactory
createInstance
in interface IClassFactory
outer
- [in]
parameter, points to controlling interface
of an aggregate, or null
if the object isn't being created
as part of an aggregate.stringIID
- [in]
parameter, string representation of
identifier for the interface used for communication with a new object.result
- [out]
parameter, instance implementing a
required interface.
ComException
- if the object creation fails.public void createInstance(IUnknown outer, IID iid, IUnknown result) throws ComException
IClassFactory
createInstance
in interface IClassFactory
outer
- [in]
parameter, points to controlling interface
of an aggregate, or null
if the object isn't being created
as part of an aggregate.iid
- [in]
parameter, identifier for the interface used
for communication with a new object.result
- [out]
parameter, instance implementing a
required interface.
ComException
- if the object creation fails.public java.util.Stack getInstances()
public void lockServer(VariantBool fLock) throws ComException
lockServer
in interface IClassFactory
fLock
-
ComException
public java.lang.Class getInstanceClass()
getInstanceClass
in interface CoClassMetaInfo
public IClassFactory createIClassFactory()
protected void doDestroy()
doDestroy
in class IUnknownServer
protected void destroy()
destroy
in class IUnknownServer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |