tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anat...@apache.org
Subject incubator-tamaya-site git commit: Updated OSGI docs (removed injection feature).
Date Sun, 05 Feb 2017 22:10:03 GMT
Repository: incubator-tamaya-site
Updated Branches:
  refs/heads/master 16e1f9bbe -> f78e51331


Updated OSGI docs (removed injection feature).


Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-site/commit/f78e5133
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-site/tree/f78e5133
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-site/diff/f78e5133

Branch: refs/heads/master
Commit: f78e513317e0139ef4d0a62969e0b20fb485acd8
Parents: 16e1f9b
Author: anatole <anatole@apache.org>
Authored: Sun Feb 5 23:09:54 2017 +0100
Committer: anatole <anatole@apache.org>
Committed: Sun Feb 5 23:09:54 2017 +0100

----------------------------------------------------------------------
 content/documentation/extensions/mod_osgi.adoc | 53 +++------------------
 1 file changed, 7 insertions(+), 46 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya-site/blob/f78e5133/content/documentation/extensions/mod_osgi.adoc
----------------------------------------------------------------------
diff --git a/content/documentation/extensions/mod_osgi.adoc b/content/documentation/extensions/mod_osgi.adoc
index 910e9fa..aa8ebfe 100644
--- a/content/documentation/extensions/mod_osgi.adoc
+++ b/content/documentation/extensions/mod_osgi.adoc
@@ -24,7 +24,7 @@ The modules are built against OSGI Compendium version 5.0. Tamaya OSGI support
i
 runtimes:
 
 * Apache Karaf, version 4.0.7
-* tbd: Apache Felix, version x.x.x.
+* Apache Felix, version 5.6.1.
 * tbd: Eclipse Equinox, version x.x.x.
 
 === Installation
@@ -34,14 +34,18 @@ environment:
 
 [source, listing]
 -----------------------------------------------
+# Runtime with OSGI ConfigAdmin support, e.g.
+org.apache.felix:org.apache.felix.configadmin:{felix_version}
 # API and core
+org.apache.geronimo.specs:geronimo-annotation_1.2_spec:1.0
 org.apache.tamaya:tamaya-api:{tamaya_version}
-org.apache.geronimo.specs:geronimo-annotation_1.2_spec:1.0-alpha-1
 org.apache.tamaya:tamaya-core:{tamaya_version}
+org.apache.tamaya:tamaya-spisupport:{tamaya_version}
 org.apache.tamaya.ext:tamaya-functions:{tamaya_version}
 org.apache.tamaya.ext:tamaya-osgi:{tamaya_version}
 -----------------------------------------------
 
+
 === How Tamaya deals with OSGI Specialities
 
 Important to know is that within OSGI class- and resource loading is not compatible with
standard Java SE. Also bundle can
@@ -112,49 +116,6 @@ public interface OSGIConfigRootMapper {
 ==== Apache Karaf
 
 Apache Tamaya provides a Karaf feature with all required dependencies
-as
-
-
-== Tamaya based Injection
-
-=== What functionality ir provided ?
-
-OSGI itself already provides injection and configuration mechanism. Since Tamaya is working
in the back
-you can continue to use the mechanism of your choice. Nevertheless Tamaya also supports enabling
Tamaya
-specific configuration injection.
-
-
-=== Installation
-
-To benefit from Tamaya's injection mechanism in your OSGI services you need additionally
to the basic
-OSGI support described earlier in this document:
-
-[source, listing]
------------------------------------------------
-org.apache.geronimo.specs:geronimo-atinject_1.0_spec:1.0
-org.apache.tamaya.ext:tamaya-inject-api:{tamaya_version}
-org.apache.tamaya.ext:tamaya-inject:{tamaya_version}
-org.apache.tamaya.ext:tamaya-inject-osgi:{tamaya_version}
------------------------------------------------
-
+as +org.apache.tamaya.ext:tamaya-karaf-features:{tamaya-version}:features:xml+.
 
-=== Example
-
-As an example, what is possible you can implement and register an OSGI service and use Tamaya's
injection
-API for configuring it:
-
-[source, java]
------------------------------------------------
-public class HelloServiceImpl implements HelloService{
-
-    @Config(value={"example.message"}, defaultValue="A Tamaya default.")
-    private String message;
-
-    @Override
-    public String sayHello() {
-        System.err.println("HELLO: " + message);
-        return message;
-    }
-}
------------------------------------------------
 


Mime
View raw message