cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ntimof...@apache.org
Subject cayenne git commit: Minor update and styling
Date Wed, 07 Feb 2018 13:42:15 GMT
Repository: cayenne
Updated Branches:
  refs/heads/master c11adead8 -> 4a8a8425e


Minor update and styling


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

Branch: refs/heads/master
Commit: 4a8a8425e210d79055344ba2925991cdd23d153e
Parents: c11adea
Author: Nikita Timofeev <stariy95@gmail.com>
Authored: Wed Feb 7 16:42:08 2018 +0300
Committer: Nikita Timofeev <stariy95@gmail.com>
Committed: Wed Feb 7 16:42:08 2018 +0300

----------------------------------------------------------------------
 .../asciidoc/_cayenne-guide/part5/commitLog.adoc    | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne/blob/4a8a8425/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/commitLog.adoc
----------------------------------------------------------------------
diff --git a/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/commitLog.adoc
b/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/commitLog.adoc
index e08b9ea..b7ae82d 100644
--- a/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/commitLog.adoc
+++ b/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part5/commitLog.adoc
@@ -45,8 +45,8 @@ compile 'org.apache.cayenne:cayenne-commitlog:{version}'
 
 In order to use `commitlog` module you need to perform three steps:
 
-1) Mark all entities which changes you are interested in with `@org.apache.cayenne.commitlog.CommitLog`
annotation
-
+. Mark all entities which changes you are interested in with `@org.apache.cayenne.commitlog.CommitLog`
annotation
++
 [source, Java]
 ----
 @CommitLog(ignoredProperties = {"somePrivatePropertyToSkip"})
@@ -55,11 +55,11 @@ public class MyEntity extends _MyEntity {
 }
 ----
 
-2) Implement `CommitLogListener` interface.
-
+. Implement `CommitLogListener` interface.
++
 [source, java]
 ----
- CommitLogListener {
+public class MyCommitLogListener implements CommitLogListener {
     @Override
     public void onPostCommit(ObjectContext originatingContext, ChangeMap changes) {
         // ChangeMap will contain all information about changes happened in performed commit
@@ -72,8 +72,8 @@ public class MyEntity extends _MyEntity {
 }
 ----
 
-3) Inject your listener into `ServerRuntime`
-
+. Register your listener implementation.
++
 [source, java]
 ----
 ServerRuntime.builder()
@@ -81,4 +81,6 @@ ServerRuntime.builder()
                 .addListener(MyCommitLogListener.class)
                 .module())
 ----
++
+NOTE: You can use several listeners, but they all will get same changes.
 


Mime
View raw message