public void checkForUpdates() { if (tracker != null && tracker.containsChanges()) { invalidate(); } }
public void checkForUpdates() { if (tracker.containsChanges()) { forceInvalidationEvent(); } }
public synchronized void checkForUpdates() { if (changeTracker.containsChanges()) { invalidationHub.classInControlledPackageHasChanged(); } }
/** * Checks to see if any parsed resource has changed. If so, then all internal caches are cleared, and an * invalidation event is fired. This is brute force ... a more targeted dependency management strategy may come * later. */ public void checkForUpdates() { if (tracker.containsChanges()) { invalidate(); } }
public void checkForUpdates() { if (tracker.containsChanges()) { tracker.clear(); cache.clear(); // A typical case is that a "context:" or "asset:" binding is used with the Dynamic component's template // parameter. This causes the Asset to be converted to a Resource and parsed. However, those are invariant // bindings, so even if it is discovered that the underlying file has changed, the parsed template // is still cached inside the component. Clearing the page pool forces the page instance to be // rebuilt, which is a crude way of clearing out that data. Other alternatives exist, such as // yielding up a proxy to the DynamicTemplate that is more change-aware. pageSource.clearCache(); } }
@Override public synchronized void checkForUpdates() { if (instance == null || !changeTracker.containsChanges()) { return; } if (logger.isDebugEnabled()) { logger.debug(String.format("Implementation class %s has changed and will be reloaded on next use.", implementationClassName)); } changeTracker.clear(); loader = null; proxyFactory.clearCache(); boolean reloadNow = informInstanceOfReload(); instance = reloadNow ? createInstance() : null; }
@Override public synchronized void checkForUpdates() { if (instance == null || !changeTracker.containsChanges()) { return; } logger.debug("Implementation class {} has changed and will be reloaded on next use.", implementationClassName); changeTracker.clear(); loader = null; proxyFactory.clearCache(); boolean reloadNow = informInstanceOfReload(); instance = reloadNow ? createInstance() : null; }