Tabnine Logo
IJIComObject.release
Code IndexAdd Tabnine 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)

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

  • Start an intent from android
  • findViewById (Activity)
  • setContentView (Activity)
  • getContentResolver (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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