public void forceComponentInvalidation() { changeTracker.clear(); invalidationHub.classInControlledPackageHasChanged(); }
public void forceInvalidationEvent() { fireInvalidationEvent(); if (tracker != null) { tracker.clear(); } }
private void invalidate() { tracker.clear(); templateResources.clear(); templates.clear(); fireInvalidationEvent(); }
public void invalidate() { messagesByBundleIdAndSelector.clear(); cookedProperties.clear(); rawProperties.clear(); tracker.clear(); fireInvalidationEvent(); }
public void run() { changeTracker.clear(); classToInstantiator.clear(); proxyFactory.clearCache(); // Release the existing class pool, loader and so forth. // Create a new one. initializeService(); }
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; }