example.serial.reader/src/example/serialshell/SerialReader.java
@Deactivate
    public void deactivate() throws Exception
    {
        m_Running = false;
        m_SerialPort.close();
        m_SerialPort.release();
    }
/**
     * Deactivate the component by closing/releasing the serial port and stopping the thread.
     * 
     * @throws Exception
     *      if any exception happens during deactivation
     */
Deactivate the component by closing/releasing the serial port and stopping the thread.

@throws Exception
if any exception happens during deactivation
Deactivate the component by closing / releasing the serial port and stopping the thread . @throws Exception if any exception happens during deactivation
@Deactivate
    public void deactivate() throws Exception
    {
        m_Running = false;
        m_SerialPort.close();
        m_SerialPort.release();
    }
@ Deactivate public void deactivate ( ) throws Exception { m_Running = false ; m_SerialPort . close ( ) ; m_SerialPort . release ( ) ; }
Deactivate the component by closing/releasing the serial port and stopping the thread.
Deactivate the component by closing / releasing the serial port and stopping the thread .