mil.dod.th.ose.core/src/mil/dod/th/ose/core/impl/asset/ScannerManager.java
public void scanForAssetsByType(final AssetDirectoryService assetDirService, final String productType)
    {
        final AssetScanner assetScanner = m_AssetScanners.get(productType);
        if (assetScanner == null)
        {
            throw new IllegalArgumentException(String.format("No Scanner found for Asset type [%s]", productType));
        }
        else
        {
            m_WakeLock.activate();

            final Set<AssetScanner> scannerList = new HashSet<>();
            scannerList.add(assetScanner);

            // kick off thread to scan for new Assets
            final Runnable runnable = new ScannerManagerThread(scannerList, assetDirService, new ScanListenerBridge(
                    assetDirService));
            final Thread thread = new Thread(runnable);
            thread.setName(ScannerManagerThread.class.getName());
            thread.start();
        }
    }
/**
     * Start a scan for the given asset product type. It must have a registered {@link AssetScanner} associated with
     * that type. New assets are created using the {@link AssetDirectoryService} reference.
     * 
     * @param assetDirService
     *            Reference to the {@link AssetDirectoryService}
     * @param productType
     *            Asset product type to scan for as returned by 
     *            {@link mil.dod.th.core.asset.AssetFactory#getProductType()}
     */
Start a scan for the given asset product type. It must have a registered  AssetScanner associated with
that type. New assets are created using the  AssetDirectoryService reference.

@param assetDirService
Reference to the  AssetDirectoryService
@param productType
Asset product type to scan for as returned by
mil.dod.th.core.asset.AssetFactory#getProductType()
Start a scan for the given asset product type . It must have a registered AssetScanner associated with that type . New assets are created using the AssetDirectoryService reference . @param assetDirService Reference to the AssetDirectoryService @param productType Asset product type to scan for as returned by mil . dod . th . core . asset . AssetFactory#getProductType ()
public void scanForAssetsByType(final AssetDirectoryService assetDirService, final String productType)
    {
        final AssetScanner assetScanner = m_AssetScanners.get(productType);
        if (assetScanner == null)
        {
            throw new IllegalArgumentException(String.format("No Scanner found for Asset type [%s]", productType));
        }
        else
        {
            m_WakeLock.activate();
            final Set<AssetScanner> scannerList = new HashSet<>();
            scannerList.add(assetScanner);
            final Runnable runnable = new ScannerManagerThread(scannerList, assetDirService, new ScanListenerBridge(
                    assetDirService));
            final Thread thread = new Thread(runnable);
            thread.setName(ScannerManagerThread.class.getName());
            thread.start();
        }
    }
public void scanForAssetsByType ( final AssetDirectoryService assetDirService , final String productType ) { final AssetScanner assetScanner = m_AssetScanners . get ( productType ) ; if ( assetScanner == null ) { throw new IllegalArgumentException ( String . format ( "No Scanner found for Asset type [%s]" , productType ) ) ; } else { m_WakeLock . activate ( ) ; final Set < AssetScanner > scannerList = new HashSet < > ( ) ; scannerList . add ( assetScanner ) ; final Runnable runnable = new ScannerManagerThread ( scannerList , assetDirService , new ScanListenerBridge ( assetDirService ) ) ; final Thread thread = new Thread ( runnable ) ; thread . setName ( ScannerManagerThread . class . getName ( ) ) ; thread . start ( ) ; } }
Start a scan for the given asset product type.
Start a scan for the given asset product type .
// kick off thread to scan for new Assets