mil.dod.th.ose.core/src/mil/dod/th/ose/core/impl/asset/Scanner.java
@Override
    public void run() 
    {
        @SuppressWarnings("unchecked")
        final Class<? extends AssetProxy> productType =
                (Class<? extends AssetProxy>)m_Scanner.getClass().getAnnotation(ProductType.class).value();
        
        Logging.log(LogService.LOG_INFO, "Started thread to scan for assets of type [%s]", 
                productType.getCanonicalName());
        
        m_ScannerListener.scannerStartedScanning(productType);
        
        final List<ScanResultsData> foundAssets = new ArrayList<>();
        final ScanResults scanResults = new ScanResults()
        {
            @Override
            public void found(final String newAssetName, final Map<String, Object> newAssetProperties)
            {
                foundAssets.add(new ScanResultsData(newAssetName, newAssetProperties));
            }
        };

        try
        {
            m_Scanner.scanForNewAssets(scanResults, m_AssetDirectoryService.getAssetsByType(productType.getName()));
        }
        catch (final AssetException e)
        {
            Logging.log(LogService.LOG_WARNING, e, "Could not scan for new assets of type %s", 
                    productType.getName());
        }

        m_ScannerListener.scanCompleteForType(productType, foundAssets);
    }
/**
     * Method run called automatically when thread is spun off of main
     * thread.
     */
Method run called automatically when thread is spun off of main
thread.
Method run called automatically when thread is spun off of main thread .
@Override
    public void run() 
    {
        @SuppressWarnings("unchecked")
        final Class<? extends AssetProxy> productType =
                (Class<? extends AssetProxy>)m_Scanner.getClass().getAnnotation(ProductType.class).value();
        Logging.log(LogService.LOG_INFO, "Started thread to scan for assets of type [%s]", 
                productType.getCanonicalName());
        m_ScannerListener.scannerStartedScanning(productType);
        final List<ScanResultsData> foundAssets = new ArrayList<>();
        final ScanResults scanResults = new ScanResults()
        {
            @Override
            public void found(final String newAssetName, final Map<String, Object> newAssetProperties)
            {
                foundAssets.add(new ScanResultsData(newAssetName, newAssetProperties));
            }
        };
        try
        {
            m_Scanner.scanForNewAssets(scanResults, m_AssetDirectoryService.getAssetsByType(productType.getName()));
        }
        catch (final AssetException e)
        {
            Logging.log(LogService.LOG_WARNING, e, "Could not scan for new assets of type %s", 
                    productType.getName());
        }
        m_ScannerListener.scanCompleteForType(productType, foundAssets);
    }
@ Override public void run ( ) { @ SuppressWarnings ( "unchecked" ) final Class < ? extends AssetProxy > productType = ( Class < ? extends AssetProxy > ) m_Scanner . getClass ( ) . getAnnotation ( ProductType . class ) . value ( ) ; Logging . log ( LogService . LOG_INFO , "Started thread to scan for assets of type [%s]" , productType . getCanonicalName ( ) ) ; m_ScannerListener . scannerStartedScanning ( productType ) ; final List < ScanResultsData > foundAssets = new ArrayList < > ( ) ; final ScanResults scanResults = new ScanResults ( ) { @ Override public void found ( final String newAssetName , final Map < String , Object > newAssetProperties ) { foundAssets . add ( new ScanResultsData ( newAssetName , newAssetProperties ) ) ; } } ; try { m_Scanner . scanForNewAssets ( scanResults , m_AssetDirectoryService . getAssetsByType ( productType . getName ( ) ) ) ; } catch ( final AssetException e ) { Logging . log ( LogService . LOG_WARNING , e , "Could not scan for new assets of type %s" , productType . getName ( ) ) ; } m_ScannerListener . scanCompleteForType ( productType , foundAssets ) ; }
Method run called automatically when thread is spun off of main
 thread.
Method run called automatically when thread is spun off of main thread .