@Override public DirectoryStructure getDirectoryStructure() { return modification.getDirectoryStructure(); } };
@Override public String getVersion() { return modification.getVersion(); }
InstallationState internalComplete() throws Exception { if (!setDone()) { throw new IllegalStateException(); } try { installationState.persist(); } catch (Exception e) { installationState.restore(); throw e; } try { persist(); } catch (Exception e) { installationState.restore(); } return installationState; }
final PatchableTarget.TargetInfo identityInfo = modification.getModifiedState(); this.identity = new Identity() { @Override this.allPatches = Collections.unmodifiableList(modification.getAllPatches()); this.layers.clear(); for (final Map.Entry<String, MutableTargetImpl> entry : state.getLayers().entrySet()) {
@Override protected void persist() throws IOException { getMutableProperties().put(Constants.ALL_PATCHES, PatchUtils.asString(allPatches)); super.persist(); }
InstallationState internalComplete() throws Exception { if (!setDone()) { throw new IllegalStateException(); } try { installationState.persist(); } catch (Exception e) { installationState.restore(); throw e; } try { persist(); } catch (Exception e) { installationState.restore(); } return installationState; }
final PatchableTarget.TargetInfo identityInfo = modification.getModifiedState(); this.identity = new Identity() { @Override this.allPatches = Collections.unmodifiableList(modification.getAllPatches()); this.layers.clear(); for (final Map.Entry<String, MutableTargetImpl> entry : state.getLayers().entrySet()) {
@Override protected void persist() throws IOException { getMutableProperties().put(Constants.ALL_PATCHES, PatchUtils.asString(allPatches)); super.persist(); }
@Override public DirectoryStructure getDirectoryStructure() { return modification.getDirectoryStructure(); } };
@Override public String getVersion() { return modification.getVersion(); }