|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.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 IUnknownpublic ULongInt addRefAggregated()
public ULongInt release()
IUnknown
release in interface IUnknownprotected void doDestroy()
public ULongInt releaseAggregated()
public void queryInterface(IID iid,
IUnknown pReqInterface)
throws ComException
IUnknown
queryInterface in interface IUnknowniid - [in]pReqInterface - [out]
ComException - if the interface is not supported
public void queryInterfaceAggregated(IID iid,
IUnknown pReqInterface)
throws ComException
iid - IID of a requested interface.pReqInterface - a requested interface.
ComException - when operation fails
public 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 IUnknownpublic void setNull()
setNull in interface IUnknownpublic void setAutoDelete(boolean autoDelete)
setAutoDelete in interface AutoDeleteParameterpublic boolean isAutoDelete()
isAutoDelete in interface AutoDeleteParameterpublic long getRefCount()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||