cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ntimof...@apache.org
Subject cayenne-website git commit: Minor docs update
Date Wed, 07 Feb 2018 13:49:35 GMT
Repository: cayenne-website
Updated Branches:
  refs/heads/master 44b03baec -> 9ee7afa02


Minor docs update


Project: http://git-wip-us.apache.org/repos/asf/cayenne-website/repo
Commit: http://git-wip-us.apache.org/repos/asf/cayenne-website/commit/9ee7afa0
Tree: http://git-wip-us.apache.org/repos/asf/cayenne-website/tree/9ee7afa0
Diff: http://git-wip-us.apache.org/repos/asf/cayenne-website/diff/9ee7afa0

Branch: refs/heads/master
Commit: 9ee7afa022cd4a8b15e788df6d35156c20441e25
Parents: 44b03ba
Author: Nikita Timofeev <stariy95@gmail.com>
Authored: Wed Feb 7 16:49:26 2018 +0300
Committer: Nikita Timofeev <stariy95@gmail.com>
Committed: Wed Feb 7 16:49:26 2018 +0300

----------------------------------------------------------------------
 .../site/content/docs/4.0/cayenne-guide.html    | 54 +++++++++++---------
 .../site/content/docs/4.1/cayenne-guide.html    | 54 +++++++++++---------
 2 files changed, 62 insertions(+), 46 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne-website/blob/9ee7afa0/src/main/site/content/docs/4.0/cayenne-guide.html
----------------------------------------------------------------------
diff --git a/src/main/site/content/docs/4.0/cayenne-guide.html b/src/main/site/content/docs/4.0/cayenne-guide.html
index 553e1af..f3de622 100644
--- a/src/main/site/content/docs/4.0/cayenne-guide.html
+++ b/src/main/site/content/docs/4.0/cayenne-guide.html
@@ -4850,23 +4850,21 @@ public class MyEntity extends _MyEntity {
     <div class="paragraph"> 
      <p>In order to use <code>commitlog</code> module you need to perform
three steps:</p> 
     </div> 
-    <div class="paragraph"> 
-     <p>1) Mark all entities which changes you are interested in with <code>@org.apache.cayenne.commitlog.CommitLog</code>
annotation</p> 
-    </div> 
-    <div class="listingblock"> 
-     <div class="content"> 
-      <pre class="highlight"><code class="language-Java Java" data-lang="Java">@CommitLog(ignoredProperties
= {"somePrivatePropertyToSkip"})
+    <div class="olist arabic"> 
+     <ol class="arabic"> 
+      <li> <p>Mark all entities which changes you are interested in with <code>@org.apache.cayenne.commitlog.CommitLog</code>
annotation</p> 
+       <div class="listingblock"> 
+        <div class="content"> 
+         <pre class="highlight"><code class="language-Java Java" data-lang="Java">@CommitLog(ignoredProperties
= {"somePrivatePropertyToSkip"})
 public class MyEntity extends _MyEntity {
     // ...
 }</code></pre> 
-     </div> 
-    </div> 
-    <div class="paragraph"> 
-     <p>2) Implement <code>CommitLogListener</code> interface.</p>

-    </div> 
-    <div class="listingblock"> 
-     <div class="content"> 
-      <pre class="highlight"><code class="language-java java" data-lang="java">
CommitLogListener {
+        </div> 
+       </div> </li> 
+      <li> <p>Implement <code>CommitLogListener</code> interface.</p>

+       <div class="listingblock"> 
+        <div class="content"> 
+         <pre class="highlight"><code class="language-java java" data-lang="java">public
class MyCommitLogListener implements CommitLogListener {
     @Override
     public void onPostCommit(ObjectContext originatingContext, ChangeMap changes) {
         // ChangeMap will contain all information about changes happened in performed commit
@@ -4877,18 +4875,28 @@ public class MyEntity extends _MyEntity {
             .forEach(id -&gt; System.out.println("Inserted new entity with id: " + id));
     }
 }</code></pre> 
-     </div> 
-    </div> 
-    <div class="paragraph"> 
-     <p>3) Inject your listener into <code>ServerRuntime</code></p>

-    </div> 
-    <div class="listingblock"> 
-     <div class="content"> 
-      <pre class="highlight"><code class="language-java java" data-lang="java">ServerRuntime.builder()
+        </div> 
+       </div> </li> 
+      <li> <p>Register your listener implementation.</p> 
+       <div class="listingblock"> 
+        <div class="content"> 
+         <pre class="highlight"><code class="language-java java" data-lang="java">ServerRuntime.builder()
         .addModule(CommitLogModule.extend()
                 .addListener(MyCommitLogListener.class)
                 .module())</code></pre> 
-     </div> 
+        </div> 
+       </div> 
+       <div class="admonitionblock note"> 
+        <table> 
+         <tbody>
+          <tr> 
+           <td class="icon"> <i class="fa fa-info-circle fa-2x" title="Note"></i>
</td> 
+           <td class="content"> You can use several listeners, but they all will get
same changes. </td> 
+          </tr> 
+         </tbody>
+        </table> 
+       </div> </li> 
+     </ol> 
     </div> 
    </div> 
   </div> 

http://git-wip-us.apache.org/repos/asf/cayenne-website/blob/9ee7afa0/src/main/site/content/docs/4.1/cayenne-guide.html
----------------------------------------------------------------------
diff --git a/src/main/site/content/docs/4.1/cayenne-guide.html b/src/main/site/content/docs/4.1/cayenne-guide.html
index 81c0cba..6f7ebdb 100644
--- a/src/main/site/content/docs/4.1/cayenne-guide.html
+++ b/src/main/site/content/docs/4.1/cayenne-guide.html
@@ -4831,23 +4831,21 @@ public class MyEntity extends _MyEntity {
     <div class="paragraph"> 
      <p>In order to use <code>commitlog</code> module you need to perform
three steps:</p> 
     </div> 
-    <div class="paragraph"> 
-     <p>1) Mark all entities which changes you are interested in with <code>@org.apache.cayenne.commitlog.CommitLog</code>
annotation</p> 
-    </div> 
-    <div class="listingblock"> 
-     <div class="content"> 
-      <pre class="highlight"><code class="language-Java Java" data-lang="Java">@CommitLog(ignoredProperties
= {"somePrivatePropertyToSkip"})
+    <div class="olist arabic"> 
+     <ol class="arabic"> 
+      <li> <p>Mark all entities which changes you are interested in with <code>@org.apache.cayenne.commitlog.CommitLog</code>
annotation</p> 
+       <div class="listingblock"> 
+        <div class="content"> 
+         <pre class="highlight"><code class="language-Java Java" data-lang="Java">@CommitLog(ignoredProperties
= {"somePrivatePropertyToSkip"})
 public class MyEntity extends _MyEntity {
     // ...
 }</code></pre> 
-     </div> 
-    </div> 
-    <div class="paragraph"> 
-     <p>2) Implement <code>CommitLogListener</code> interface.</p>

-    </div> 
-    <div class="listingblock"> 
-     <div class="content"> 
-      <pre class="highlight"><code class="language-java java" data-lang="java">
CommitLogListener {
+        </div> 
+       </div> </li> 
+      <li> <p>Implement <code>CommitLogListener</code> interface.</p>

+       <div class="listingblock"> 
+        <div class="content"> 
+         <pre class="highlight"><code class="language-java java" data-lang="java">public
class MyCommitLogListener implements CommitLogListener {
     @Override
     public void onPostCommit(ObjectContext originatingContext, ChangeMap changes) {
         // ChangeMap will contain all information about changes happened in performed commit
@@ -4858,18 +4856,28 @@ public class MyEntity extends _MyEntity {
             .forEach(id -&gt; System.out.println("Inserted new entity with id: " + id));
     }
 }</code></pre> 
-     </div> 
-    </div> 
-    <div class="paragraph"> 
-     <p>3) Inject your listener into <code>ServerRuntime</code></p>

-    </div> 
-    <div class="listingblock"> 
-     <div class="content"> 
-      <pre class="highlight"><code class="language-java java" data-lang="java">ServerRuntime.builder()
+        </div> 
+       </div> </li> 
+      <li> <p>Register your listener implementation.</p> 
+       <div class="listingblock"> 
+        <div class="content"> 
+         <pre class="highlight"><code class="language-java java" data-lang="java">ServerRuntime.builder()
         .addModule(CommitLogModule.extend()
                 .addListener(MyCommitLogListener.class)
                 .module())</code></pre> 
-     </div> 
+        </div> 
+       </div> 
+       <div class="admonitionblock note"> 
+        <table> 
+         <tbody>
+          <tr> 
+           <td class="icon"> <i class="fa fa-info-circle fa-2x" title="Note"></i>
</td> 
+           <td class="content"> You can use several listeners, but they all will get
same changes. </td> 
+          </tr> 
+         </tbody>
+        </table> 
+       </div> </li> 
+     </ol> 
     </div> 
    </div> 
   </div> 


Mime
View raw message