Codota Logo
IJIComObject.release
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain IJIComObject
private void myMethod () {
IJIComObject i =
  • Codota IconJIComServer comServer;comServer.createInstance()
  • Codota IconJIObjectFactory.narrowObject((IJIComObject)result[0])
  • Codota IconJIComServer jIComServer;jIComServer.getInstance()
  • Smart code suggestions by Codota
}
origin: org.openscada.jinterop/org.openscada.jinterop.core

@Override
public void release () throws JIException
{
  this.comObject.release ();
}
origin: org.kohsuke.jinterop/j-interop

public void release() throws JIException
{
  comObject.release();
}
 
origin: org.jinterop/j-interop

public void release() throws JIException
{
  comObject.release();
}
 
origin: org.kohsuke.jinterop/j-interop

public synchronized boolean isDispatchSupported()
{
  checkLocal();
  if (!dualInfo)
  {
    //query interface for it and then release it.
    try {
      IJIComObject comObject = queryInterface("00020400-0000-0000-c000-000000000046");
      comObject.release();
      setIsDual(true);
    } catch (JIException e) {
      setIsDual(false);
    }
  }
  return isDual;
}
origin: org.jinterop/j-interop

public synchronized boolean isDispatchSupported()
{
  checkLocal();
  if (!dualInfo)
  {
    //query interface for it and then release it.
    try {
      IJIComObject comObject = queryInterface("00020400-0000-0000-c000-000000000046");
      comObject.release();
      setIsDual(true);
    } catch (JIException e) {
      setIsDual(false);
    }
  }
  return isDual;
}
origin: org.openscada.jinterop/org.openscada.jinterop.core

@Override
public synchronized boolean isDispatchSupported ()
{
  checkLocal ();
  if ( !this.dualInfo )
  {
    //query interface for it and then release it.
    try
    {
      final IJIComObject comObject = queryInterface ( "00020400-0000-0000-c000-000000000046" );
      comObject.release ();
      setIsDual ( true );
    }
    catch ( final JIException e )
    {
      setIsDual ( false );
    }
  }
  return this.isDual;
}
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();
}
 
origin: org.openscada.jinterop/org.openscada.jinterop.core

connectionPointContainer.release ();
origin: org.kohsuke.jinterop/j-interop

connectionPointContainer.release();
origin: org.jinterop/j-interop

connectionPointContainer.release();
org.jinterop.dcom.coreIJIComObjectrelease

Javadoc

Decreases the reference count on the COM server by 5 (currently hard coded). The developer should refrain from calling this API, as referencing is maintained internally by the system though he is not obligated to do so. If the release is not called in conjunction with #addRef() then the COM Instance will not get garbage collected at the server.

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_getConnectionInfo
    Framework Internal Returns the ConnectionPoint (IJIComObject) and it's Cookie.
  • 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_removeConnectionInfo,
  • internal_setConnectionInfo,
  • internal_setDeffered,
  • isDispatchSupported,
  • isLocalReference,
  • registerUnreferencedHandler,
  • setInstanceLevelSocketTimeout,
  • unregisterUnreferencedHandler

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onRequestPermissionsResult (Fragment)
  • orElseThrow (Optional)
  • notifyDataSetChanged (ArrayAdapter)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • JFileChooser (javax.swing)
  • JPanel (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now