private void deliverMountUpdate ( SlotReference slot , boolean mounted ) { if ( mounted ) { logger . info ( "Reporting media mounted in " + slot ) ; } else { logger . info ( "Reporting media removed from " + slot ) ; } for ( final MountListener listener : getMountListeners ( ) ) { try { if ( mounted ) { listener . mediaMounted ( slot ) ; } else { listener . mediaUnmounted ( slot ) ; } } catch ( Throwable t ) { logger . warn ( "Problem delivering mount update to listener" , t ) ; } } if ( mounted ) { MetadataCache . tryAutoAttaching ( slot ) ; } }
Send a mount update announcement to all registered listeners and see if we can auto - attach a media cache file .