protected void persist() throws IOException { if (modified) { // persist the state for bundles and modules directory persist(cumulativeID, patchIds, properties); } }
final String layerName = entry.getKey(); final MutableTargetImpl target = entry.getValue(); putLayer(layerName, new LayerInfo(layerName, target.getModifiedState(), target.getDirectoryStructure())); final String addOnName = entry.getKey(); final MutableTargetImpl target = entry.getValue(); putAddOn(addOnName, new LayerInfo(addOnName, target.getModifiedState(), target.getDirectoryStructure()));
protected void putPatchableTarget(final String name, final PatchableTarget target, Map<String, MutableTargetImpl> map) throws IOException { final PatchableTarget.TargetInfo info = target.loadTargetInfo(); map.put(name, new MutableTargetImpl(info)); }
private void restore() { for (final MutableTargetImpl target : layers.values()) { try { target.restore(); } catch (IOException e) { PatchLogger.ROOT_LOGGER.debugf(e, "failed to restore original state for layer %s", target); } } for (final MutableTargetImpl target : addOns.values()) { try { target.restore(); } catch (IOException e) { PatchLogger.ROOT_LOGGER.debugf(e, "failed to restore original state for add-on %s", target); } } }
final String layerName = entry.getKey(); final MutableTargetImpl target = entry.getValue(); putLayer(layerName, new LayerInfo(layerName, target.getModifiedState(), target.getDirectoryStructure())); final String addOnName = entry.getKey(); final MutableTargetImpl target = entry.getValue(); putAddOn(addOnName, new LayerInfo(addOnName, target.getModifiedState(), target.getDirectoryStructure()));
protected void putPatchableTarget(final String name, final PatchableTarget target, Map<String, MutableTargetImpl> map) throws IOException { final PatchableTarget.TargetInfo info = target.loadTargetInfo(); map.put(name, new MutableTargetImpl(info)); }
private void restore() { for (final MutableTargetImpl target : layers.values()) { try { target.restore(); } catch (IOException e) { PatchLogger.ROOT_LOGGER.debugf(e, "failed to restore original state for layer %s", target); } } for (final MutableTargetImpl target : addOns.values()) { try { target.restore(); } catch (IOException e) { PatchLogger.ROOT_LOGGER.debugf(e, "failed to restore original state for add-on %s", target); } } }
protected void persist() throws IOException { if (modified) { // persist the state for bundles and modules directory persist(cumulativeID, patchIds, properties); } }
@Override protected void persist() throws IOException { getMutableProperties().put(Constants.ALL_PATCHES, PatchUtils.asString(allPatches)); super.persist(); }
@Override protected void persist() throws IOException { getMutableProperties().put(Constants.ALL_PATCHES, PatchUtils.asString(allPatches)); super.persist(); }
protected void restore() throws IOException { if (modified) { // persist the state for bundles and modules directory persist(current.getCumulativePatchID(), current.getPatchIDs(), current.getProperties()); } }
protected void restore() throws IOException { if (modified) { // persist the state for bundles and modules directory persist(current.getCumulativePatchID(), current.getPatchIDs(), current.getProperties()); } }