org.jinterop.dcom.core
Class JIFrameworkHelper

java.lang.Object
  extended by org.jinterop.dcom.core.JIFrameworkHelper

public final class JIFrameworkHelper
extends java.lang.Object

Internal Framework Helper class. Do not use outside of framework.


Constructor Summary
JIFrameworkHelper()
           
 
Method Summary
static java.lang.String attachEventHandler(IJIComObject comObject, java.lang.String sourceUUID, IJIComObject eventListener)
           
static void detachEventHandler(IJIComObject comObject, java.lang.String identifier)
           
static IJIComObject instantiateComObject(JISession session, byte[] rawBytes, java.lang.String ipAddress)
          Returns an Interface Pointer representation from raw bytes.
static IJIComObject instantiateComObject(JISession session, IJIComObject comObject)
          Typically used in the Man-In-The-Middle scenario, where one j-Interop system interacts with another over the wire.
static IJIComObject instantiateLocalComObject(JISession session, JILocalCoClass javaComponent)
          Returns an Interface Pointer representation for the Java Component
static int reverseArrayForDispatch(JIArray arrayToReverse)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JIFrameworkHelper

public JIFrameworkHelper()
Method Detail

instantiateLocalComObject

public static IJIComObject instantiateLocalComObject(JISession session,
                                                     JILocalCoClass javaComponent)
                                              throws JIException
Returns an Interface Pointer representation for the Java Component

Parameters:
javaComponent -
Returns:
Throws:
JIException

instantiateComObject

public static IJIComObject instantiateComObject(JISession session,
                                                byte[] rawBytes,
                                                java.lang.String ipAddress)
                                         throws JIException
Returns an Interface Pointer representation from raw bytes.

Parameters:
session -
rawBytes -
Returns:
Throws:
JIException

instantiateComObject

public static IJIComObject instantiateComObject(JISession session,
                                                IJIComObject comObject)
                                         throws JIException
Typically used in the Man-In-The-Middle scenario, where one j-Interop system interacts with another over the wire. Or the IJIComObject is deserialized from a Database and is right now drifting.

Parameters:
session -
comObject -
Returns:
Throws:
JIException

detachEventHandler

public static void detachEventHandler(IJIComObject comObject,
                                      java.lang.String identifier)
                               throws JIException
Parameters:
comObject -
identifier -
Throws:
JIException

attachEventHandler

public static java.lang.String attachEventHandler(IJIComObject comObject,
                                                  java.lang.String sourceUUID,
                                                  IJIComObject eventListener)
                                           throws JIException
Parameters:
comObject -
sourceUUID -
eventListener -
Returns:
Throws:
JIException

reverseArrayForDispatch

public static int reverseArrayForDispatch(JIArray arrayToReverse)