You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tamaya.apache.org by an...@apache.org on 2015/06/26 01:37:56 UTC
incubator-tamaya git commit: Fixed formatting.
Repository: incubator-tamaya
Updated Branches:
refs/heads/master 0c8f5971e -> 3d8164c95
Fixed formatting.
Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/commit/3d8164c9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/tree/3d8164c9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/diff/3d8164c9
Branch: refs/heads/master
Commit: 3d8164c95ae7ebe74dc663421a5e7fcb63e995ce
Parents: 0c8f597
Author: anatole <at...@gmail.com>
Authored: Fri Jun 26 01:37:46 2015 +0200
Committer: anatole <at...@gmail.com>
Committed: Fri Jun 26 01:37:46 2015 +0200
----------------------------------------------------------------------
docs/src/main/asciidoc/mod_resolver.adoc | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/3d8164c9/docs/src/main/asciidoc/mod_resolver.adoc
----------------------------------------------------------------------
diff --git a/docs/src/main/asciidoc/mod_resolver.adoc b/docs/src/main/asciidoc/mod_resolver.adoc
index 2f36287..7eb281d 100644
--- a/docs/src/main/asciidoc/mod_resolver.adoc
+++ b/docs/src/main/asciidoc/mod_resolver.adoc
@@ -52,13 +52,13 @@ cycles to loop endlessly.
To benefit from dynamic value resolution you only must add the corresponding dependency to your module:
[source, xml]
-===============================================
+-----------------------------------------------
<dependency>
<groupId>org.apache.tamaya.ext</groupId>
<artifactId>tamaya-resolver</artifactId>
<version>{tamayaVersion}</version>
</dependency>
-===============================================
+-----------------------------------------------
The module automatically registers an according +PropertyFilter+ that is automatically called, whenever a value
is accessed.
@@ -83,7 +83,7 @@ first and most important thing to do is implementing the +ExpressionResolver+ in
.Implementing a Custom Resolver
[source, java]
-================================================================
+-----------------------------------------------
public class PwdDecrypter implements ExpressionResolver {
@Override
@@ -100,17 +100,17 @@ public class PwdDecrypter implements ExpressionResolver {
...
}
}
-================================================================
+-----------------------------------------------
Basically that is all you must do, after having registered the class with the +ServiceLoader+ it will be found
and loaded by the implementation. With that all expressions that start with the given prefix are passed to the
resolver, so all the following expressions will be sent to the implementation:
[source,listing]
-=============================================================================
+-----------------------------------------------
blabla ${decrypt:myname}
blabla ${decrypt:myname} foo blabla ${decrypt:myname}
-=============================================================================
+-----------------------------------------------
Hereby evaluation is repeasted until no further change of values could be detetced. In case of a endless loop
the evaluation is broken after a (configurable) number of cycles.