private void stopServices ( ) { // Stop services in reverse order of starting. m_logger . debug ( "Stopping all services" ) ; ListIterator < Service > iter = m_startedServices . listIterator ( m_startedServices . size ( ) ) ; while ( iter . hasPrevious ( ) ) { Service service = iter . previous ( ) ; m_logger . debug ( "Stopping service: " + service . getClass ( ) . getSimpleName ( ) ) ; service . stop ( ) ; iter . remove ( ) ; } m_initializedServices . clear ( ) ; m_storageServices . clear ( ) ; }
Stop all registered services .