|
|||||||||||
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
This class provides default server-side implementation of
IUnknown
interface.
Field Summary |
Fields inherited from interface com.jniwrapper.win32.com.IUnknown |
INTERFACE_IDENTIFIER |
Constructor Summary | |
IUnknownServer(CoClassMetaInfo classImpl)
|
Method Summary | |
ULongInt |
addRef()
Increments the reference count for an interface on an object. |
ULongInt |
addRefAggregated()
Calls the addRef method for an aggregate object. |
void |
create(IUnknown outerInterface,
IID iid,
IUnknown defInterface)
Creates a co-class and returns its default interface. |
protected void |
destroy()
|
protected void |
doDestroy()
|
boolean |
doQueryInterface(IID iid,
IUnknown intf)
Returns interface by IID. |
protected CoClassMetaInfo |
getClassImpl()
|
long |
getRefCount()
Returns reference count to this object. |
boolean |
isAutoDelete()
|
boolean |
isNull()
|
void |
queryInterface(IID iid,
IUnknown pReqInterface)
Retrieves pointers to the supported interfaces on an object. |
void |
queryInterfaceAggregated(IID iid,
IUnknown pReqInterface)
If an aggregate object exists, calls the queryInterface method for it; otherwise calls the queryInterface method for a current object. |
ULongInt |
release()
Decrements the reference count for an interface on an object. |
ULongInt |
releaseAggregated()
Calls release for an aggregate object. |
void |
setAutoDelete(boolean autoDelete)
|
void |
setNull()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IUnknownServer(CoClassMetaInfo classImpl)
Method Detail |
protected CoClassMetaInfo getClassImpl()
public ULongInt addRef()
IUnknown
addRef
in interface IUnknown
public ULongInt addRefAggregated()
public ULongInt release()
IUnknown
release
in interface IUnknown
protected void doDestroy()
public ULongInt releaseAggregated()
public void queryInterface(IID iid, IUnknown pReqInterface) throws ComException
IUnknown
queryInterface
in interface IUnknown
iid
- [in]
pReqInterface
- [out]
ComException
- if the interface is not supportedpublic void queryInterfaceAggregated(IID iid, IUnknown pReqInterface) throws ComException
iid
- IID of a requested interface.pReqInterface
- a requested interface.
ComException
- when operation failspublic boolean doQueryInterface(IID iid, IUnknown intf)
iid
- IID of a requested interface.intf
- a requested interface if true is returned.
protected void destroy()
public void create(IUnknown outerInterface, IID iid, IUnknown defInterface) throws ComException
outerInterface
- an outer interfaceiid
- IID of the requested interface.defInterface
- output with the default interface for the created
co-class (out-only parameter).
ComException
- when server cannot create a new object due to some reasonpublic boolean isNull()
isNull
in interface IUnknown
public void setNull()
setNull
in interface IUnknown
public void setAutoDelete(boolean autoDelete)
setAutoDelete
in interface AutoDeleteParameter
public boolean isAutoDelete()
isAutoDelete
in interface AutoDeleteParameter
public long getRefCount()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |