|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jinterop.dcom.core.JILocalCoClass
public final class JILocalCoClass
Represents a Java COCLASS.
Please refer to MSInternetExplorer, Test_ITestServer2_Impl, SampleTestServer
and MSShell examples for more details on how to use this class.
| Constructor Summary | |
|---|---|
JILocalCoClass(JILocalInterfaceDefinition interfaceDefinition,
java.lang.Class clazz)
Creates a local class instance. |
|
JILocalCoClass(JILocalInterfaceDefinition interfaceDefinition,
java.lang.Class clazz,
boolean useInterfaceDefinitionIID)
Refer JILocalCoClass(JILocalInterfaceDefinition, Class). |
|
JILocalCoClass(JILocalInterfaceDefinition interfaceDefinition,
java.lang.Object instance)
Creates a local class instance. |
|
JILocalCoClass(JILocalInterfaceDefinition interfaceDefinition,
java.lang.Object instance,
boolean useInterfaceDefinitionIID)
Creates a local class instance. |
|
| Method Summary | |
|---|---|
void |
addInterfaceDefinition(JILocalInterfaceDefinition interfaceDefinition,
java.lang.Class clazz)
Add another interface definition and it's class. |
void |
addInterfaceDefinition(JILocalInterfaceDefinition interfaceDefinition,
java.lang.Object instance)
Add another interface definition and it's supporting object instance. |
boolean |
equals(java.lang.Object target)
|
java.lang.String |
getCoClassIID()
Returns the interface identifier of this COCLASS. |
JILocalInterfaceDefinition |
getInterfaceDefinition()
Returns the primary interfaceDefinition. |
JILocalInterfaceDefinition |
getInterfaceDefinition(java.lang.String IID)
Returns the interface definition based on the IID of the interface. |
java.lang.Class |
getServerClass()
Returns the actual class representing the interface definition. |
java.lang.Object |
getServerInstance()
Returns the instance representing the interface definition. |
int |
hashCode()
|
boolean |
isCoClassUnderRealIID()
Returns true if the primary interface definition represents a real IID . |
void |
setSupportedEventInterfaces(java.util.List listOfIIDs)
Sets the interface identifiers ( IIDs) of the event interfaces this class would support. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JILocalCoClass(JILocalInterfaceDefinition interfaceDefinition,
java.lang.Class clazz)
clazz
using Class.newInstance. Make sure that clazz has a visible null
constructor.
interfaceDefinition - implementing structurally the definition of the COM callback interface.clazz - class to instantiate for serving requests from COM client. Must implement
the interfaceDefinition fully.
java.lang.IllegalArgumentException - if interfaceDefinition or clazz are null.
public JILocalCoClass(JILocalInterfaceDefinition interfaceDefinition,
java.lang.Class clazz,
boolean useInterfaceDefinitionIID)
JILocalCoClass(JILocalInterfaceDefinition, Class).
interfaceDefinition - implementing structurally the definition of the COM callback interface.clazz - class to instantiate for serving requests from COM client. Must implement
the interfaceDefinition fully.useInterfaceDefinitionIID - true if the IID of interfaceDefinitionIUnknown* is required.
For all JIObjectFactory.attachEventHandler(IJIComObject, String, IJIComObject) operations this should be set to
false since the IConnectionPoint::Advise method takes in a IUnknown* reference.
java.lang.IllegalArgumentException - if interfaceDefinition or clazz are null.
public JILocalCoClass(JILocalInterfaceDefinition interfaceDefinition,
java.lang.Object instance)
interfaceDefinition - implementing structurally the definition of the COM callback interface.instance - instance for serving requests from COM client. Must implement
the interfaceDefinition fully.
java.lang.IllegalArgumentException - if interfaceDefinition or instance are null.
public JILocalCoClass(JILocalInterfaceDefinition interfaceDefinition,
java.lang.Object instance,
boolean useInterfaceDefinitionIID)
interfaceDefinition - implementing structurally the definition of the COM callback interface.instance - instance for serving requests from COM client. Must implement
the interfaceDefinition fully.useInterfaceDefinitionIID - true if the IID of interfaceDefinitionIUnknown* is required.
For all JIObjectFactory.attachEventHandler(IJIComObject, String, IJIComObject) operations this should be set to
false since the IConnectionPoint::Advise method takes in a IUnknown* reference.
java.lang.IllegalArgumentException - if interfaceDefinition or instance are null.| Method Detail |
|---|
public void setSupportedEventInterfaces(java.util.List listOfIIDs)
IIDs) of the event interfaces this class would support. This in case the same
clazz or instance is implementing more than one IID.
listOfIIDs - JILocalCoClass(JILocalInterfaceDefinition, Class),
JILocalCoClass(JILocalInterfaceDefinition, Object)
public void addInterfaceDefinition(JILocalInterfaceDefinition interfaceDefinition,
java.lang.Object instance)
interfaceDefinition - implementing structurally the definition of the COM callback interface.instance - instance for serving requests from COM client. Must implement
the interfaceDefinition fully.
java.lang.IllegalArgumentException - if interfaceDefinition or instance are null.
public void addInterfaceDefinition(JILocalInterfaceDefinition interfaceDefinition,
java.lang.Class clazz)
interfaceDefinition - implementing structurally the definition of the COM callback interface.clazz - instance for serving requests from COM client. Must implement
the interfaceDefinition fully.
java.lang.IllegalArgumentException - if interfaceDefinition or clazz are null.public java.lang.Object getServerInstance()
JILocalCoClass(JILocalInterfaceDefinition, Object)public java.lang.Class getServerClass()
JILocalCoClass(JILocalInterfaceDefinition, Class)public java.lang.String getCoClassIID()
JILocalCoClass(JILocalInterfaceDefinition, Class),
JILocalCoClass(JILocalInterfaceDefinition, Object),
JILocalInterfaceDefinition.getInterfaceIdentifier()public JILocalInterfaceDefinition getInterfaceDefinition()
JILocalCoClass(JILocalInterfaceDefinition, Class),
JILocalCoClass(JILocalInterfaceDefinition, Object)public boolean equals(java.lang.Object target)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic JILocalInterfaceDefinition getInterfaceDefinition(java.lang.String IID)
null if no interface definition matching the IID has been found.public boolean isCoClassUnderRealIID()
Returns true if the primary interface definition represents a real IID .
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||