Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Commit

Permalink
Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
mordechaim committed Oct 9, 2018
1 parent 0b8bb8b commit 412f4e2
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/main/java/org/update4j/Configuration.java
Expand Up @@ -77,7 +77,7 @@
* machine, not both. The documentation of each method will point that out.
*
* <p>
* A configuration is linked to an XML file, and this class provide methods to
* A configuration (or config) is linked to an XML file, and this class provide methods to
* read, write, generate and sync configurations. Once a configuration has been
* created, it is immutable and cannot be modified. There are methods to
* manipulate the XML elements and create new configurations from them, but the
Expand All @@ -86,8 +86,6 @@
* <h2>Terminology</h2>
* <p>
* <ul>
* <li><b>Config</b> &mdash; For the purpose of brevity we will refer to a
* configuration as a 'config'.</li>
* <li><b>Bootstrap Application</b> &mdash; The JVM startup application that
* solely does the update and launch logic or anything at that level apart from
* the Business Application.</li>
Expand Down Expand Up @@ -303,9 +301,9 @@
* <p>
* You can update before launching so the subsequent launch always has the
* newest version, or you can update afterwards and only get the new version on
* next restart. In the latter case you cannot update existing files, since the
* JVM locks them upon launch; you can call any of the {@code updateTemp()}
* overloads and complete the launch on next restart via
* next restart. In the latter case &mdash; on Windows &mdash; you cannot update
* existing files, since the JVM locks them upon launch; you can call any of the
* {@code updateTemp()} overloads and complete the launch on next restart via
* {@link Update#finalizeUpdate(Path)}.
*
* <p>
Expand Down Expand Up @@ -358,7 +356,7 @@
* // some random method
* Configuration config = getConfig();
* // we don't want to hang, so we can update immediately
* new Thread(() -> config.launch());
* new Thread(() -> config.launch()).start();
*
* // and *after* launch do the update
* if (config.requiresUpdate()) {
Expand Down

0 comments on commit 412f4e2

Please sign in to comment.