private boolean needsDiscarding(Generation generation) { for (StorageHook<?, ?> hook : generation.getStorageHooks()) { try { hook.validate(); } catch (IllegalStateException e) { // TODO Logging? return true; } } File content = generation.getContent(); if (getConfiguration().inCheckConfigurationMode()) { if (generation.isDirectory()) { content = new File(content, "META-INF/MANIFEST.MF"); //$NON-NLS-1$ } return generation.getLastModified() != secureAction.lastModified(content); } if (!content.exists()) { // the content got deleted since last time! return true; } return false; }
private boolean needsDiscarding(Generation generation) { for (StorageHook<?, ?> hook : generation.getStorageHooks()) { try { hook.validate(); } catch (IllegalStateException e) { // TODO Logging? return true; } } File content = generation.getContent(); if (getConfiguration().inCheckConfigurationMode()) { if (generation.isDirectory()) { content = new File(content, "META-INF/MANIFEST.MF"); //$NON-NLS-1$ } return generation.getLastModified() != secureAction.lastModified(content); } if (!content.exists()) { // the content got deleted since last time! return true; } return false; }
private boolean needsDiscarding(Generation generation) { for (StorageHook<?, ?> hook : generation.getStorageHooks()) { try { hook.validate(); } catch (IllegalStateException e) { // TODO Logging? return true; } } File content = generation.getContent(); if (!content.exists()) { // the content got deleted since last time! return true; } if (getConfiguration().inCheckConfigurationMode()) { if (generation.isDirectory()) content = new File(content, "META-INF/MANIFEST.MF"); //$NON-NLS-1$ return generation.getLastModified() != secureAction.lastModified(content); } return false; }
private boolean needsDiscarding(Generation generation) { for (StorageHook<?, ?> hook : generation.getStorageHooks()) { try { hook.validate(); } catch (IllegalStateException e) { // TODO Logging? return true; } } File content = generation.getContent(); if (getConfiguration().inCheckConfigurationMode()) { if (generation.isDirectory()) { content = new File(content, "META-INF/MANIFEST.MF"); //$NON-NLS-1$ } return generation.getLastModified() != secureAction.lastModified(content); } if (!content.exists()) { // the content got deleted since last time! return true; } return false; }
private boolean needsDiscarding(Generation generation) { for (StorageHook<?, ?> hook : generation.getStorageHooks()) { try { hook.validate(); } catch (IllegalStateException e) { // TODO Logging? return true; } } File content = generation.getContent(); if (getConfiguration().inCheckConfigurationMode()) { if (generation.isDirectory()) { content = new File(content, "META-INF/MANIFEST.MF"); //$NON-NLS-1$ } return generation.getLastModified() != secureAction.lastModified(content); } if (!content.exists()) { // the content got deleted since last time! return true; } return false; }
private boolean needsDiscarding(Generation generation) { for (StorageHook<?, ?> hook : generation.getStorageHooks()) { try { hook.validate(); } catch (IllegalStateException e) { // TODO Logging? return true; } } File content = generation.getContent(); if (!content.exists()) { // the content got deleted since last time! return true; } if (getConfiguration().inCheckConfigurationMode()) { if (generation.isDirectory()) content = new File(content, "META-INF/MANIFEST.MF"); //$NON-NLS-1$ return generation.getLastModified() != secureAction.lastModified(content); } return false; }
public void delete() { List<StorageHook<?, ?>> hooks = getStorageHooks(); if (hooks != null) { for (StorageHook<?, ?> hook : hooks) { hook.deletingGeneration(); } } synchronized (this.genMonitor) { // make sure the bundle file is closed if (bundleFile != null) { try { bundleFile.close(); } catch (IOException e) { // ignore } } } getBundleInfo().delete(this); }
public void delete() { List<StorageHook<?, ?>> hooks = getStorageHooks(); if (hooks != null) { for (StorageHook<?, ?> hook : hooks) { hook.deletingGeneration(); } } synchronized (this.genMonitor) { // make sure the bundle file is closed if (bundleFile != null) { try { bundleFile.close(); } catch (IOException e) { // ignore } } } getBundleInfo().delete(this); }
public void delete() { List<StorageHook<?, ?>> hooks = getStorageHooks(); if (hooks != null) { for (StorageHook<?, ?> hook : hooks) { hook.deletingGeneration(); } } synchronized (this.genMonitor) { // make sure the bundle file is closed if (bundleFile != null) { try { bundleFile.close(); } catch (IOException e) { // ignore } } } getBundleInfo().delete(this); }
public void delete() { List<StorageHook<?, ?>> hooks = getStorageHooks(); if (hooks != null) { for (StorageHook<?, ?> hook : hooks) { hook.deletingGeneration(); } } synchronized (this.genMonitor) { // make sure the bundle file is closed if (bundleFile != null) { try { bundleFile.close(); } catch (IOException e) { // ignore } } } getBundleInfo().delete(this); }
public void delete() { List<StorageHook<?, ?>> hooks = getStorageHooks(); if (hooks != null) { for (StorageHook<?, ?> hook : hooks) { hook.deletingGeneration(); } } synchronized (this.genMonitor) { // make sure the bundle file is closed if (bundleFile != null) { try { bundleFile.close(); } catch (IOException e) { // ignore } } } getBundleInfo().delete(this); }
public void delete() { List<StorageHook<?, ?>> hooks = getStorageHooks(); if (hooks != null) { for (StorageHook<?, ?> hook : hooks) { hook.deletingGeneration(); } } synchronized (this.genMonitor) { // make sure the bundle file is closed if (bundleFile != null) { try { bundleFile.close(); } catch (IOException e) { // ignore } } } getBundleInfo().delete(this); }
public ModuleRevisionBuilder adaptModuleRevisionBuilder(ModuleEvent operation, Module origin, ModuleRevisionBuilder builder) { List<StorageHook<?, ?>> hooks = getStorageHooks(); if (hooks != null) { for (StorageHook<?, ?> hook : hooks) { ModuleRevisionBuilder hookResult = hook.adaptModuleRevisionBuilder(operation, origin, builder); if (hookResult != null) { builder = hookResult; } } } return builder; } }
public ModuleRevisionBuilder adaptModuleRevisionBuilder(ModuleEvent operation, Module origin, ModuleRevisionBuilder builder) { List<StorageHook<?, ?>> hooks = getStorageHooks(); if (hooks != null) { for (StorageHook<?, ?> hook : hooks) { ModuleRevisionBuilder hookResult = hook.adaptModuleRevisionBuilder(operation, origin, builder); if (hookResult != null) { builder = hookResult; } } } return builder; } }