|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.moesol.bindings.platform_sdk.component_services.ComObject
public class ComObject
Implement COM object servers in Java. Extend this class to create a COM object server in java. See Reverse COM for more details.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.moesol.bindings.platform_sdk.component_services.IUnknown |
---|
IUnknown.Disp, IUnknown.Jni |
Field Summary | |
---|---|
protected com.moesol.bindings.platform_sdk.component_services.ComIUnknown |
m_iunknown_support
This field helps avoid most name conflicts and supports aggregation. |
Fields inherited from interface com.moesol.bindings.platform_sdk.component_services.IUnknown |
---|
IID, TYPELIB |
Constructor Summary | |
---|---|
protected |
ComObject()
Initializes the COM interface map based on refelection. |
protected |
ComObject(boolean reflect_com_map)
If reflect_com_map is true then initializes the COM
interface based on reflection. |
Method Summary | |
---|---|
void |
FinalConstruct()
Override if you need to create aggregate objects. |
protected void |
FinalRelease()
Override if you want to know when all external COM interfaces have been freed. |
int |
Invoke(int dispIdMember,
GUID riid,
long lcid,
int flags,
Object[] dispParams,
Object[] varResult,
long[] argErr)
Called when a native client uses IDispatch::Invoke. |
IUnknown |
QueryInterface(Class iface_class)
Provides an implementation of IUnknown.QueryInterface The current implementation may return a java forward COM wrapper to a reverse COM wrapper. |
int |
QueryInterface(InterfaceBuilder interfaceBuilder)
Called when native code calls IUnknown::QueryInterface on this ComObject. |
void |
QueryInterface(Object[] out_iface)
Provides an implementation of IUnknown.QueryInterface. |
int |
Release()
Calls the native COM interfaces IUnknown::Release method and make this equivalent to NULL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected com.moesol.bindings.platform_sdk.component_services.ComIUnknown m_iunknown_support
Constructor Detail |
---|
protected ComObject()
#ComObjectRoot(boolean)
.
protected ComObject(boolean reflect_com_map)
reflect_com_map
is true then initializes the COM
interface based on reflection. Otherwise, the COM interface map is empty
and must be filled in by the subclass.
reflect_com_map
- Method Detail |
---|
public void QueryInterface(Object[] out_iface)
QueryInterface
in interface IUnknown
out_iface
- See IUnknown.QueryInterface(Object[])
public IUnknown QueryInterface(Class iface_class)
QueryInterface
in interface IUnknown
iface_class
- See IUnknown.QueryInterface(Class)
public int Release()
IUnknown
Release
in interface IUnknown
public void FinalConstruct()
FinalRelease()
for discussion
about method name clashes.
protected void FinalRelease()
public int QueryInterface(InterfaceBuilder interfaceBuilder)
interfaceBuilder
QueryInterface
will fail with E_NOINTERFACE.
interfaceBuilder
- [in] IID, [out] native interface
public int Invoke(int dispIdMember, GUID riid, long lcid, int flags, Object[] dispParams, Object[] varResult, long[] argErr)
dispIdMember
- riid
- lcid
- flags
- dispParams
- varResult
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |