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/09/06 09:05:01 UTC
incubator-tamaya git commit: Fixed doc issues.
Repository: incubator-tamaya
Updated Branches:
refs/heads/master 4f409de51 -> b81fbc1bd
Fixed doc issues.
Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/commit/b81fbc1b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/tree/b81fbc1b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/diff/b81fbc1b
Branch: refs/heads/master
Commit: b81fbc1bd8f20894a692f1d12ab1b8612aff5864
Parents: 4f409de
Author: anatole <an...@apache.org>
Authored: Sun Sep 6 09:04:47 2015 +0200
Committer: anatole <an...@apache.org>
Committed: Sun Sep 6 09:04:47 2015 +0200
----------------------------------------------------------------------
docs/src/main/asciidoc/mod_server.adoc | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/b81fbc1b/docs/src/main/asciidoc/mod_server.adoc
----------------------------------------------------------------------
diff --git a/docs/src/main/asciidoc/mod_server.adoc b/docs/src/main/asciidoc/mod_server.adoc
index 79fd2f6..6ec84b6 100644
--- a/docs/src/main/asciidoc/mod_server.adoc
+++ b/docs/src/main/asciidoc/mod_server.adoc
@@ -104,9 +104,9 @@ parameters:
required client configuration (for client1). Refer to the scopes section for more details.
-=== Using the Configuration Servlet
+=== Using the Configuration Servlets
-Additionally to the fully built-in solution, it is also possible to integrate the server module with a standard
+Additionally to the fully built-in solution, it is also possible to integrate the Tamaya server module with a standard
Java EE servlet container. Tamaya provides 2 servlet implementations:
* the servlet +org.apache.tamaya.server.FilteredConfigServlet+ can be used to register access to configurations
@@ -139,7 +139,7 @@ where
The server module formats the configuration returned by default in thw following variants:
-.Formatting for text/json
+.Formatting for +text/json+
[source, json]
-----------------------------------------------
@@ -175,7 +175,7 @@ The server module formats the configuration returned by default in thw following
-----------------------------------------------
-.Formatting for application/xml
+.Formatting for +application/xml+
[source, xml]
-----------------------------------------------
@@ -211,7 +211,7 @@ The server module formats the configuration returned by default in thw following
-----------------------------------------------
-.Formatting for text/plain
+.Formatting for +text/plain+
[source, text]
-----------------------------------------------
@@ -247,7 +247,7 @@ Configuration:
-----------------------------------------------
-.Formatting for application/html
+.Formatting for +application/html+
[source, html]
-----------------------------------------------
@@ -329,8 +329,10 @@ have to add the following to +META-INF/services/org.apache.tamaya.server.spi.Sco
my.full.packagename.ClientScopeProvider
-----------------------------------------------
-=== Finally the effective readong and configuration handlinh logic can also be replaced or improved. This can be
-done by registering your own implementation of the interface ++:
+==== Adapting the Way Configuration is Derived
+
+Finally the effective readong and configuration handling logic can also be replaced or improved. This can be
+done by registering your own implementation of the interface +ConfigProviderService+:
[source, java]
------------------------------------------------
@@ -346,7 +348,7 @@ By default the +ServiceContextManager+ uses the +java.util.ServiceLoader+ for co
default server code you must register a higher +@Priority+ implementation.
-==== Default Server
+==== Replacing the Built-In Server
We have seen earlier that starting a configuration server is pretty easy:
@@ -369,6 +371,7 @@ public interface Server {
}
-----------------------------------------------
+==== The ScopeManager Singleton
Finally whe implementing your own server, you might also benefit from the +ScopeManager+ singleton. Basically this
class loads all registered +ScopeProvider+ and manages the configured scope instances: