protected final void sendAddLoaderEvent(){
  if (_hasNewLoader && _isScanning.compareAndSet(false,true)) {
    try {
      while (_hasNewLoader) {
        _hasNewLoader=false;
        scan();
        configureEnhancerEvent();
        configurePostEnhancerEvent();
      }
    }
  finally {
      _isScanning.set(false);
    }
  }
}

protected final void sendAddLoaderEvent ( ) { if ( _hasNewLoader && _isScanning . compareAndSet ( false , true ) ) { try { while ( _hasNewLoader ) { _hasNewLoader = false ; scan ( ) ; configureEnhancerEvent ( ) ; configurePostEnhancerEvent ( ) ; } } finally { _isScanning . set ( false ) ; } } }
adds a listener to detect class loader changes .
