|
Sun Adapter for COM/DCOM API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.stc.connector.appconn.com.otd.ComApplication
public class ComApplication
ComApplication.
Constructor Summary | |
---|---|
ComApplication()
|
Method Summary | |
---|---|
void |
associateConnection(com.stc.connector.appconn.common.ApplicationConnection appConn)
Call this method to associate an ApplicationConnection. |
STCIDispatch |
create(java.lang.String clsidString)
Call this method to create an instance of the COM object specified by the CLSID string and the server (if DCOM component) in the eWay configuration. |
ComConfiguration |
getConfiguration()
Get the configuration for this application. |
java.lang.String |
resolveSystemErrorText(int hr)
A convenience method exposed to allow the user to get the error text for an HRESULT. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComApplication()
Method Detail |
---|
public void associateConnection(com.stc.connector.appconn.common.ApplicationConnection appConn) throws com.stc.connector.appconn.common.ApplicationConnectionException, com.stc.connector.appconn.common.ApplicationException
associateConnection
in interface ConnectionAssociation
appConn
- The applicationConnection to be associated.
com.stc.connector.appconn.common.ApplicationConnectionException
- or ApplicationException
Thrown
if the attempt fails.
com.stc.connector.appconn.common.ApplicationException
public STCIDispatch create(java.lang.String clsidString) throws ComApplicationException
clsidString
- The CLSID string of the COM object you wish to create.
Note that the component must be automation-compatible.
STCIDispatch
- Returns an STCIDispatch interface for the specified CLSID string.
ComApplicationException
- Thrown if creation of the instance fails.public ComConfiguration getConfiguration()
ComConfiguration
- Returns the configuration.
public java.lang.String resolveSystemErrorText(int hr)
FormatMessage
method in the Win32 API.
hr
- The hr value.
String
- Returns the error message from operating system, if any.
|
Sun Adapter for COM/DCOM API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |