IReferenceCollection references = fApiComponentCache.get(apiComponent); if (references == null) { references = apiComponent.getExternalDependencies();
@Override protected UseScanCache newInstance(int size, int newOverflow) { return new UseScanCache(size, newOverflow); }
/** * Returns a handle to the singleton instance * * @return the singleton {@link UseScanManager} */ public synchronized static UseScanManager getInstance() { if (fUseScanProcessor == null) { fUseScanProcessor = new UseScanManager(); fApiComponentCache = new UseScanCache(DEFAULT_CACHE_SIZE); } return fUseScanProcessor; }
/** * Sets the cache size * * @param size The total number of references that can be held in memory */ public void setCacheSize(int size) { fApiComponentCache.setSpaceLimit(size); }