Tabnine Logo
IJIComObject.internal_getConnectionInfo
Code IndexAdd Tabnine to your IDE (free)

How to use
internal_getConnectionInfo
method
in
org.jinterop.dcom.core.IJIComObject

Best Java code snippets using org.jinterop.dcom.core.IJIComObject.internal_getConnectionInfo (Showing top 6 results out of 315)

origin: org.openscada.jinterop/org.openscada.jinterop.core

@Override
public Object[] internal_getConnectionInfo ( final String identifier )
{
  return this.comObject.internal_getConnectionInfo ( identifier );
}
origin: org.kohsuke.jinterop/j-interop

public Object[] internal_getConnectionInfo(String identifier) {
  return comObject.internal_getConnectionInfo(identifier);
}
origin: org.jinterop/j-interop

public Object[] internal_getConnectionInfo(String identifier) {
  return comObject.internal_getConnectionInfo(identifier);
}
origin: org.openscada.jinterop/org.openscada.jinterop.core

/**
 * @exclude
 * @param comObject
 * @param identifier
 * @throws JIException
 */
public static void detachEventHandler ( final IJIComObject comObject, final String identifier ) throws JIException
{
  final Object[] connectionInfo = comObject.internal_getConnectionInfo ( identifier );
  if ( connectionInfo == null )
  {
    throw new JIException ( JIErrorCodes.JI_CALLBACK_INVALID_ID );
  }
  logger.info ( "Detaching event handler for  comObject: {} , identifier: {}", comObject.getInterfaceIdentifier (), identifier );
  final IJIComObject connectionPointer = (IJIComObject)connectionInfo[0];
  //first use the cookie to detach.
  final JICallBuilder object = new JICallBuilder ( true );
  object.setOpnum ( 3 );
  object.addInParamAsInt ( ( (Integer)connectionInfo[1] ).intValue (), JIFlags.FLAG_NULL );
  connectionPointer.call ( object );
  //now release the connectionPointer.
  connectionPointer.release ();
}
origin: org.kohsuke.jinterop/j-interop

/**
 * @exclude
 * @param comObject
 * @param identifier
 * @throws JIException
 */
public static void detachEventHandler(IJIComObject comObject, String identifier) throws JIException
{
  Object[] connectionInfo = comObject.internal_getConnectionInfo(identifier);
  if (connectionInfo == null)
  {
    throw new JIException(JIErrorCodes.JI_CALLBACK_INVALID_ID);
  }
  if (JISystem.getLogger().isLoggable(Level.INFO))
  {
    JISystem.getLogger().info("Detaching event handler for  comObject: " + comObject.getInterfaceIdentifier() + " , identifier: " + identifier);
  }
  IJIComObject connectionPointer = (IJIComObject)connectionInfo[0];
  //first use the cookie to detach.
  JICallBuilder object = new JICallBuilder(true);
  object.setOpnum(3);
  object.addInParamAsInt(((Integer)connectionInfo[1]).intValue(),JIFlags.FLAG_NULL);
  connectionPointer.call(object);
  //now release the connectionPointer.
  connectionPointer.release();
}
origin: org.jinterop/j-interop

/**
 * @exclude
 * @param comObject
 * @param identifier
 * @throws JIException
 */
public static void detachEventHandler(IJIComObject comObject, String identifier) throws JIException
{
  Object[] connectionInfo = comObject.internal_getConnectionInfo(identifier);
  if (connectionInfo == null)
  {
    throw new JIException(JIErrorCodes.JI_CALLBACK_INVALID_ID);
  }
  
  if (JISystem.getLogger().isLoggable(Level.INFO))
  {
    JISystem.getLogger().info("Detaching event handler for  comObject: " + comObject.getInterfaceIdentifier() + " , identifier: " + identifier);
  }
  
  IJIComObject connectionPointer = (IJIComObject)connectionInfo[0];
  
  //first use the cookie to detach.
  JICallBuilder object = new JICallBuilder(true);
  object.setOpnum(3);
  object.addInParamAsInt(((Integer)connectionInfo[1]).intValue(),JIFlags.FLAG_NULL);
  connectionPointer.call(object);
  //now release the connectionPointer.
  connectionPointer.release();
}
 
org.jinterop.dcom.coreIJIComObjectinternal_getConnectionInfo

Javadoc

Framework Internal Returns the ConnectionPoint (IJIComObject) and it's Cookie.

Popular methods of IJIComObject

  • queryInterface
    Retrieve interface references based on iid. Make sure to narrow before casting to the expected type
  • call
    Refer #call(JICallBuilder) for details on this method.
  • getAssociatedSession
    Returns session associated with this object.
  • addRef
    Increases the reference count on the COM server by 5 (currently hard coded). The developer should r
  • getInstanceLevelSocketTimeout
    Returns the socket timeout set at the instance level. This timeout value is used during all socket l
  • getInterfaceIdentifier
    Returns the COM IID of this object
  • getIpid
    Unique 128 bit uuid representing the interface on the COM server. This value can and should be used
  • getUnreferencedHandler
    Returns the IJIUnreferenced handler associated with this object.
  • internal_getInterfacePointer
    Framework Internal Returns self Interface pointer.
  • internal_removeConnectionInfo
    Framework Internal Returns and Removes the connection info from the internal map.
  • internal_setConnectionInfo
    Adds a connection point information and it's cookie to the connectionPointMap internally. To be call
  • internal_setDeffered
    Framework Internal
  • internal_setConnectionInfo,
  • internal_setDeffered,
  • isDispatchSupported,
  • isLocalReference,
  • registerUnreferencedHandler,
  • release,
  • setInstanceLevelSocketTimeout,
  • unregisterUnreferencedHandler

Popular in Java

  • Reactive rest calls using spring rest template
  • findViewById (Activity)
  • getContentResolver (Context)
  • getSystemService (Context)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • JFrame (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now