@Override public void release () throws JIException { this.comObject.release (); }
public void release() throws JIException { comObject.release(); }
public void release() throws JIException { comObject.release(); }
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; }
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; }
@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; }
/** * @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 (); }
/** * @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(); }
/** * @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(); }
connectionPointContainer.release ();
connectionPointContainer.release();
connectionPointContainer.release();