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 2017/09/21 16:25:34 UTC

incubator-tamaya-sandbox git commit: TAMAYA-297: Fixed invalid symbolic name, changed entry order in pom.

Repository: incubator-tamaya-sandbox
Updated Branches:
  refs/heads/java8 4c2593840 -> 39bf82405


TAMAYA-297: Fixed invalid symbolic name, changed entry order in pom.


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

Branch: refs/heads/java8
Commit: 39bf824056ed708c2e40d1d15fb5d72fdfbb257e
Parents: 4c25938
Author: anatole <an...@apache.org>
Authored: Thu Sep 21 18:25:21 2017 +0200
Committer: anatole <an...@apache.org>
Committed: Thu Sep 21 18:25:21 2017 +0200

----------------------------------------------------------------------
 configured-sysprops/pom.xml                     | 10 +--
 osgi/felix-shell/bnd.bnd                        | 36 ++++++++
 osgi/felix-shell/pom.xml                        | 92 ++++++++++++++++++++
 .../tamaya/felix/shell/BackupCreateCommand.java | 47 ++++++++++
 .../tamaya/felix/shell/BackupDeleteCommand.java | 42 +++++++++
 .../tamaya/felix/shell/BackupListCommand.java   | 41 +++++++++
 .../tamaya/felix/shell/ConfigCommand.java       | 42 +++++++++
 .../felix/shell/DefaultDisableCommand.java      | 47 ++++++++++
 .../tamaya/felix/shell/GetPolicyCommand.java    | 47 ++++++++++
 .../felix/shell/HistoryDeleteCommand.java       | 42 +++++++++
 .../tamaya/felix/shell/HistoryGetCommand.java   | 47 ++++++++++
 .../felix/shell/HistorySizeGetCommand.java      | 42 +++++++++
 .../felix/shell/HistorySizeSetCommand.java      | 47 ++++++++++
 .../apache/tamaya/felix/shell/InfoCommand.java  | 46 ++++++++++
 .../tamaya/felix/shell/PolicyGetCommand.java    | 47 ++++++++++
 .../tamaya/felix/shell/PolicySetCommand.java    | 49 +++++++++++
 .../tamaya/felix/shell/PropertyGetCommand.java  | 50 +++++++++++
 .../felix/shell/PropertySourceCommand.java      | 42 +++++++++
 .../felix/shell/PropertySourcesCommand.java     | 42 +++++++++
 .../org/apache/tamaya/karaf/shell/commands      | 37 ++++++++
 20 files changed, 890 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/39bf8240/configured-sysprops/pom.xml
----------------------------------------------------------------------
diff --git a/configured-sysprops/pom.xml b/configured-sysprops/pom.xml
index 8384d04..28ce175 100644
--- a/configured-sysprops/pom.xml
+++ b/configured-sysprops/pom.xml
@@ -32,11 +32,6 @@ under the License.
 
     <dependencies>
         <dependency>
-            <groupId>junit</groupId>
-            <artifactId>junit</artifactId>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
             <groupId>org.apache.tamaya</groupId>
             <artifactId>tamaya-api</artifactId>
             <version>${project.parent.version}</version>
@@ -47,6 +42,11 @@ under the License.
             <version>${project.parent.version}</version>
             <scope>test</scope>
         </dependency>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <scope>test</scope>
+        </dependency>
     </dependencies>
 
 </project>

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/39bf8240/osgi/felix-shell/bnd.bnd
----------------------------------------------------------------------
diff --git a/osgi/felix-shell/bnd.bnd b/osgi/felix-shell/bnd.bnd
new file mode 100644
index 0000000..643f788
--- /dev/null
+++ b/osgi/felix-shell/bnd.bnd
@@ -0,0 +1,36 @@
+-buildpath: \
+	osgi.annotation; version=6.0.0,\
+	osgi.core; version=6.0,\
+	osgi.cmpn; version=6.0
+
+-testpath: \
+	${junit}
+
+javac.source: 1.8
+javac.target: 1.8
+
+Bundle-Version: ${version}.${tstamp}
+Bundle-Name: Apache Tamaya - Felix Shell Commands
+Bundle-SymbolicName: org.apache.tamaya.osgi.felix.shell
+Bundle-Description: Apacha Tamaya Configuration - Felix Shell Extensions
+Bundle-Category: Implementation
+Bundle-Copyright: (C) Apache Foundation
+Bundle-License: Apache Licence version 2
+Bundle-Vendor: Apache Software Foundation
+Bundle-ContactAddress: dev-tamaya@incubator.apache.org
+Bundle-DocURL: http://tamaya.apache.org
+Export-Package: \
+	org.apache.tamaya.felix.shell
+Import-Package: \
+    org.osgi.service.cm,\
+    org.osgi.framework,\
+    org.apache.tamaya,\
+    org.apache.tamaya.spi,\
+    org.apache.tamaya.functions,\
+    org.apache.tamaya.spisupport,\
+    org.apache.tamaya.osgi,\
+    org.apache.felix.service.command,\
+    org.apache.karaf.shell.api.console,\
+    org.apache.karaf.shell.api.action,\
+    org.apache.karaf.shell.api.action.lifecycle,\
+    org.apache.karaf.shell.support.completers

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/39bf8240/osgi/felix-shell/pom.xml
----------------------------------------------------------------------
diff --git a/osgi/felix-shell/pom.xml b/osgi/felix-shell/pom.xml
new file mode 100644
index 0000000..d19cb08
--- /dev/null
+++ b/osgi/felix-shell/pom.xml
@@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+    <!--
+
+        Licensed to the Apache Software Foundation (ASF) under one or more
+        contributor license agreements.  See the NOTICE file distributed with
+        this work for additional information regarding copyright ownership.
+        The ASF licenses this file to You under the Apache License, Version 2.0
+        (the "License"); you may not use this file except in compliance with
+        the License.  You may obtain a copy of the License at
+
+           http://www.apache.org/licenses/LICENSE-2.0
+
+        Unless required by applicable law or agreed to in writing, software
+        distributed under the License is distributed on an "AS IS" BASIS,
+        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+        See the License for the specific language governing permissions and
+        limitations under the License.
+    -->
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.tamaya.ext</groupId>
+        <artifactId>tamaya-osgi-all</artifactId>
+        <version>0.4-incubating-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>tamaya-osgi-gogo-shell_alpha</artifactId>
+    <packaging>jar</packaging>
+    <name>Apache Tamaya :: OSGI :: Gogo :: Shell</name>
+    <description>Tamaya Gogo Shell Commands</description>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.tamaya.ext</groupId>
+            <artifactId>tamaya-osgi_alpha</artifactId>
+            <version>${project.parent.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.osgi</groupId>
+            <artifactId>org.osgi.compendium</artifactId>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.osgi</groupId>
+            <artifactId>org.osgi.core</artifactId>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.felix</groupId>
+            <artifactId>org.apache.felix.framework</artifactId>
+            <version>5.6.1</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.felix</groupId>
+            <artifactId>org.apache.felix.scr.annotations</artifactId>
+            <version>1.9.12</version>
+        </dependency>
+
+        <!-- Testing -->
+        <dependency>
+            <groupId>org.hamcrest</groupId>
+            <artifactId>java-hamcrest</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-scr-plugin</artifactId>
+                <version>1.21.0</version>
+                <executions>
+                    <execution>
+                        <id>generate-scr-scrdescriptor</id>
+                        <goals>
+                            <goal>scr</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/39bf8240/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/BackupCreateCommand.java
----------------------------------------------------------------------
diff --git a/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/BackupCreateCommand.java b/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/BackupCreateCommand.java
new file mode 100644
index 0000000..df40327
--- /dev/null
+++ b/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/BackupCreateCommand.java
@@ -0,0 +1,47 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tamaya.felix.shell;
+
+import org.apache.felix.scr.annotations.Reference;
+import org.apache.felix.scr.annotations.Service;
+import org.apache.tamaya.osgi.commands.BackupCommands;
+import org.osgi.service.cm.ConfigurationAdmin;
+import org.osgi.service.component.annotations.Component;
+
+import java.io.IOException;
+
+@Component(
+        immediate = true,
+        property = {
+                "osgi.command.scope=tamaya:backup-create",
+                "osgi.command.function=create"
+        },
+        service=BackupCreateCommand.class
+)
+@Service
+public class BackupCreateCommand{
+
+    @Reference
+    ConfigurationAdmin cm;
+
+    public Object create(String pid, boolean replace) throws IOException {
+        return BackupCommands.createBackup(cm, pid, replace);
+    }
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/39bf8240/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/BackupDeleteCommand.java
----------------------------------------------------------------------
diff --git a/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/BackupDeleteCommand.java b/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/BackupDeleteCommand.java
new file mode 100644
index 0000000..c7c8c79
--- /dev/null
+++ b/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/BackupDeleteCommand.java
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tamaya.felix.shell;
+
+import org.apache.felix.scr.annotations.Service;
+import org.apache.tamaya.osgi.commands.BackupCommands;
+import org.osgi.service.component.annotations.Component;
+
+import java.io.IOException;
+
+@Component(
+        immediate = true,
+        property = {
+                "osgi.command.scope=tamaya:backup-delete",
+                "osgi.command.function=delete"
+        },
+        service=BackupDeleteCommand.class
+)
+@Service
+public class BackupDeleteCommand{
+
+    public String execute(String pid) throws IOException {
+        return (BackupCommands.deleteBackup(pid));
+    }
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/39bf8240/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/BackupListCommand.java
----------------------------------------------------------------------
diff --git a/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/BackupListCommand.java b/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/BackupListCommand.java
new file mode 100644
index 0000000..fec62ee
--- /dev/null
+++ b/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/BackupListCommand.java
@@ -0,0 +1,41 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tamaya.felix.shell;
+
+import org.apache.felix.scr.annotations.Service;
+import org.apache.tamaya.osgi.commands.BackupCommands;
+import org.osgi.service.component.annotations.Component;
+
+import java.io.IOException;
+
+@Component(
+        immediate = true,
+        property = {
+                "osgi.command.scope=tamaya:backup-list",
+                "osgi.command.function=list"
+        },
+        service=BackupListCommand.class
+)
+@Service
+public class BackupListCommand{
+    public String list(String pid) throws IOException {
+        return BackupCommands.listBackup(pid);
+    }
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/39bf8240/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/ConfigCommand.java
----------------------------------------------------------------------
diff --git a/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/ConfigCommand.java b/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/ConfigCommand.java
new file mode 100644
index 0000000..b4ce576
--- /dev/null
+++ b/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/ConfigCommand.java
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tamaya.felix.shell;
+
+import org.apache.felix.scr.annotations.Service;
+import org.apache.tamaya.osgi.commands.ConfigCommands;
+import org.osgi.service.component.annotations.Component;
+
+import java.io.IOException;
+
+@Component(
+        immediate = true,
+        property = {
+                "osgi.command.scope=tamaya:config",
+                "osgi.command.function=config"
+        },
+        service=ConfigCommand.class
+)
+@Service
+public class ConfigCommand{
+
+    public String config(String section) throws IOException {
+        return (ConfigCommands.readConfig(section));
+    }
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/39bf8240/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/DefaultDisableCommand.java
----------------------------------------------------------------------
diff --git a/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/DefaultDisableCommand.java b/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/DefaultDisableCommand.java
new file mode 100644
index 0000000..b390933
--- /dev/null
+++ b/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/DefaultDisableCommand.java
@@ -0,0 +1,47 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tamaya.felix.shell;
+
+import org.apache.felix.scr.annotations.Reference;
+import org.apache.felix.scr.annotations.Service;
+import org.apache.tamaya.osgi.TamayaConfigPlugin;
+import org.apache.tamaya.osgi.commands.ConfigCommands;
+import org.osgi.service.component.annotations.Component;
+
+import java.io.IOException;
+
+@Component(
+        immediate = true,
+        property = {
+                "osgi.command.scope=tamaya:disable-by-default",
+                "osgi.command.function=disable"
+        },
+        service=DefaultDisableCommand.class
+)
+@Service
+public class DefaultDisableCommand{
+
+    @Reference
+    private TamayaConfigPlugin configPlugin;
+
+    public String disable(boolean disabled) throws IOException {
+        return(ConfigCommands.setDefaultDisabled(configPlugin, disabled));
+    }
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/39bf8240/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/GetPolicyCommand.java
----------------------------------------------------------------------
diff --git a/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/GetPolicyCommand.java b/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/GetPolicyCommand.java
new file mode 100644
index 0000000..c75ec34
--- /dev/null
+++ b/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/GetPolicyCommand.java
@@ -0,0 +1,47 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tamaya.felix.shell;
+
+import org.apache.felix.scr.annotations.Reference;
+import org.apache.felix.scr.annotations.Service;
+import org.apache.tamaya.osgi.TamayaConfigPlugin;
+import org.apache.tamaya.osgi.commands.ConfigCommands;
+import org.osgi.service.component.annotations.Component;
+
+import java.io.IOException;
+
+@Component(
+        immediate = true,
+        property = {
+                "osgi.command.scope=tamaya:default-policy",
+                "osgi.command.function=defaultOpPolicy"
+        },
+        service=GetPolicyCommand.class
+)
+@Service
+public class GetPolicyCommand{
+
+    @Reference
+    private TamayaConfigPlugin configPlugin;
+
+    public String defaultOpPolicy() throws IOException {
+        return (ConfigCommands.getDefaultOpPolicy(configPlugin));
+    }
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/39bf8240/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/HistoryDeleteCommand.java
----------------------------------------------------------------------
diff --git a/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/HistoryDeleteCommand.java b/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/HistoryDeleteCommand.java
new file mode 100644
index 0000000..c4c9802
--- /dev/null
+++ b/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/HistoryDeleteCommand.java
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tamaya.felix.shell;
+
+import org.apache.felix.scr.annotations.Service;
+import org.apache.tamaya.osgi.commands.HistoryCommands;
+import org.osgi.service.component.annotations.Component;
+
+import java.io.IOException;
+
+@Component(
+        immediate = true,
+        property = {
+                "osgi.command.scope=tamaya:history-delete",
+                "osgi.command.function=delete"
+        },
+        service=HistoryDeleteCommand.class
+)
+@Service
+public class HistoryDeleteCommand{
+
+    public String delete(String pid) throws IOException {
+        return (HistoryCommands.clearHistory(pid));
+    }
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/39bf8240/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/HistoryGetCommand.java
----------------------------------------------------------------------
diff --git a/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/HistoryGetCommand.java b/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/HistoryGetCommand.java
new file mode 100644
index 0000000..13c4f68
--- /dev/null
+++ b/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/HistoryGetCommand.java
@@ -0,0 +1,47 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tamaya.felix.shell;
+
+import org.apache.felix.scr.annotations.Reference;
+import org.apache.felix.scr.annotations.Service;
+import org.apache.tamaya.osgi.TamayaConfigPlugin;
+import org.apache.tamaya.osgi.commands.HistoryCommands;
+import org.osgi.service.component.annotations.Component;
+
+import java.io.IOException;
+
+@Component(
+        immediate = true,
+        property = {
+                "osgi.command.scope=tamaya:history",
+                "osgi.command.function=getHistory"
+        },
+        service=HistoryGetCommand.class
+)
+@Service
+public class HistoryGetCommand{
+
+    @Reference
+    private TamayaConfigPlugin configPlugin;
+
+    public String getHistory(String pid, String[] eventTypes) throws IOException {
+        return (HistoryCommands.getHistory(pid, eventTypes));
+    }
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/39bf8240/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/HistorySizeGetCommand.java
----------------------------------------------------------------------
diff --git a/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/HistorySizeGetCommand.java b/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/HistorySizeGetCommand.java
new file mode 100644
index 0000000..c3b725f
--- /dev/null
+++ b/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/HistorySizeGetCommand.java
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tamaya.felix.shell;
+
+import org.apache.felix.scr.annotations.Service;
+import org.apache.tamaya.osgi.commands.HistoryCommands;
+import org.osgi.service.component.annotations.Component;
+
+import java.io.IOException;
+
+@Component(
+        immediate = true,
+        property = {
+                "osgi.command.scope=tamaya:history-size",
+                "osgi.command.function=getHistorySize"
+        },
+        service=HistorySizeGetCommand.class
+)
+@Service
+public class HistorySizeGetCommand{
+
+    public String getHistorySize() throws IOException {
+        return String.valueOf(HistoryCommands.getMaxHistorySize());
+    }
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/39bf8240/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/HistorySizeSetCommand.java
----------------------------------------------------------------------
diff --git a/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/HistorySizeSetCommand.java b/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/HistorySizeSetCommand.java
new file mode 100644
index 0000000..a69c793
--- /dev/null
+++ b/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/HistorySizeSetCommand.java
@@ -0,0 +1,47 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tamaya.felix.shell;
+
+import org.apache.felix.scr.annotations.Reference;
+import org.apache.felix.scr.annotations.Service;
+import org.apache.tamaya.osgi.TamayaConfigPlugin;
+import org.apache.tamaya.osgi.commands.HistoryCommands;
+import org.osgi.service.component.annotations.Component;
+
+import java.io.IOException;
+
+@Component(
+        immediate = true,
+        property = {
+                "osgi.command.scope=tamaya:history-size-set",
+                "osgi.command.function=setHistorySize"
+        },
+        service=HistorySizeSetCommand.class
+)
+@Service
+public class HistorySizeSetCommand{
+
+    @Reference
+    private TamayaConfigPlugin configPlugin;
+
+    public String setHistorySize(int maxSize) throws IOException {
+        return HistoryCommands.setMaxHistorySize(maxSize);
+    }
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/39bf8240/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/InfoCommand.java
----------------------------------------------------------------------
diff --git a/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/InfoCommand.java b/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/InfoCommand.java
new file mode 100644
index 0000000..00ebc84
--- /dev/null
+++ b/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/InfoCommand.java
@@ -0,0 +1,46 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tamaya.felix.shell;
+
+import org.apache.felix.scr.annotations.Service;
+import org.apache.tamaya.osgi.TamayaConfigPlugin;
+import org.apache.tamaya.osgi.commands.ConfigCommands;
+import org.osgi.service.component.annotations.Component;
+
+import java.io.IOException;
+
+@Component(
+        immediate = true,
+        property = {
+                "osgi.command.scope=tamaya:info",
+                "osgi.command.function=info"
+        },
+        service=InfoCommand.class
+)
+@Service
+public class InfoCommand {
+
+    @org.apache.felix.scr.annotations.Reference
+    private TamayaConfigPlugin configPlugin;
+
+    public String info() throws IOException {
+        return (ConfigCommands.getInfo(configPlugin));
+    }
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/39bf8240/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/PolicyGetCommand.java
----------------------------------------------------------------------
diff --git a/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/PolicyGetCommand.java b/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/PolicyGetCommand.java
new file mode 100644
index 0000000..776a0ed
--- /dev/null
+++ b/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/PolicyGetCommand.java
@@ -0,0 +1,47 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tamaya.felix.shell;
+
+import org.apache.felix.scr.annotations.Reference;
+import org.apache.felix.scr.annotations.Service;
+import org.apache.tamaya.osgi.TamayaConfigPlugin;
+import org.apache.tamaya.osgi.commands.ConfigCommands;
+import org.osgi.service.component.annotations.Component;
+
+import java.io.IOException;
+
+@Component(
+        immediate = true,
+        property = {
+                "osgi.command.scope=tamaya:policy",
+                "osgi.command.function=policy"
+        },
+        service=PolicyGetCommand.class
+)
+@Service
+public class PolicyGetCommand{
+
+    @Reference
+    private TamayaConfigPlugin configPlugin;
+
+    public String policy() throws IOException {
+        return ConfigCommands.getDefaultOpPolicy(configPlugin);
+    }
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/39bf8240/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/PolicySetCommand.java
----------------------------------------------------------------------
diff --git a/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/PolicySetCommand.java b/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/PolicySetCommand.java
new file mode 100644
index 0000000..6e37f81
--- /dev/null
+++ b/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/PolicySetCommand.java
@@ -0,0 +1,49 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tamaya.felix.shell;
+
+import org.apache.felix.scr.annotations.Reference;
+import org.apache.felix.scr.annotations.Service;
+import org.apache.tamaya.osgi.OperationMode;
+import org.apache.tamaya.osgi.TamayaConfigPlugin;
+import org.apache.tamaya.osgi.commands.ConfigCommands;
+import org.osgi.service.component.annotations.Component;
+
+import java.io.IOException;
+import java.util.List;
+
+@Component(
+        immediate = true,
+        property = {
+                "osgi.command.scope=tamaya:policy-set",
+                "osgi.command.function=setPolicy"
+        },
+        service=PolicySetCommand.class
+)
+@Service
+public class PolicySetCommand{
+
+    @Reference
+    private TamayaConfigPlugin configPlugin;
+
+    public String setPolicy(OperationMode policy) throws IOException {
+        return ConfigCommands.setDefaultOpPolicy(configPlugin, policy.toString());
+    }
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/39bf8240/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/PropertyGetCommand.java
----------------------------------------------------------------------
diff --git a/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/PropertyGetCommand.java b/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/PropertyGetCommand.java
new file mode 100644
index 0000000..d3de8c8
--- /dev/null
+++ b/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/PropertyGetCommand.java
@@ -0,0 +1,50 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tamaya.felix.shell;
+
+import org.apache.felix.scr.annotations.Service;
+import org.apache.tamaya.osgi.commands.ConfigCommands;
+import org.osgi.service.component.annotations.Component;
+
+import java.io.IOException;
+
+@Component(
+        immediate = true,
+        property = {
+                "osgi.command.scope=tamaya:property",
+                "osgi.command.function=property"
+        },
+        service=PropertyGetCommand.class
+)
+@Service
+public class PropertyGetCommand{
+
+    public String property(String propertysource, String key, boolean extended) throws IOException {
+        return ConfigCommands.getProperty(propertysource, key, extended);
+    }
+
+    public String property(String propertysource, String key) throws IOException {
+        return property(propertysource, key, false);
+    }
+
+    public String property(String key) throws IOException {
+        return property(null, key, false);
+    }
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/39bf8240/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/PropertySourceCommand.java
----------------------------------------------------------------------
diff --git a/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/PropertySourceCommand.java b/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/PropertySourceCommand.java
new file mode 100644
index 0000000..0b48850
--- /dev/null
+++ b/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/PropertySourceCommand.java
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tamaya.felix.shell;
+
+import org.apache.felix.scr.annotations.Service;
+import org.apache.tamaya.osgi.commands.ConfigCommands;
+import org.osgi.service.component.annotations.Component;
+
+import java.io.IOException;
+
+@Component(
+        immediate = true,
+        property = {
+                "osgi.command.scope=tamaya:propertysource",
+                "osgi.command.function=propertysource"
+        },
+        service=PropertySourceCommand.class
+)
+@Service
+public class PropertySourceCommand{
+
+    public String propertysource(String propertysource) throws IOException {
+        return ConfigCommands.getPropertySource(propertysource);
+    }
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/39bf8240/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/PropertySourcesCommand.java
----------------------------------------------------------------------
diff --git a/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/PropertySourcesCommand.java b/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/PropertySourcesCommand.java
new file mode 100644
index 0000000..20a72e3
--- /dev/null
+++ b/osgi/felix-shell/src/main/java/org/apache/tamaya/felix/shell/PropertySourcesCommand.java
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tamaya.felix.shell;
+
+import org.apache.felix.scr.annotations.Service;
+import org.apache.tamaya.osgi.commands.ConfigCommands;
+import org.osgi.service.component.annotations.Component;
+
+import java.io.IOException;
+
+@Component(
+        immediate = true,
+        property = {
+                "osgi.command.scope=tamaya:propertysources",
+                "osgi.command.function=propertysources"
+        },
+        service=PropertySourcesCommand.class
+)
+@Service
+public class PropertySourcesCommand{
+
+    public String propertysources() throws IOException {
+        return ConfigCommands.getPropertySourceOverview();
+    }
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/39bf8240/osgi/felix-shell/src/main/resources/META-INF/services/org/apache/tamaya/karaf/shell/commands
----------------------------------------------------------------------
diff --git a/osgi/felix-shell/src/main/resources/META-INF/services/org/apache/tamaya/karaf/shell/commands b/osgi/felix-shell/src/main/resources/META-INF/services/org/apache/tamaya/karaf/shell/commands
new file mode 100644
index 0000000..56a9ff8
--- /dev/null
+++ b/osgi/felix-shell/src/main/resources/META-INF/services/org/apache/tamaya/karaf/shell/commands
@@ -0,0 +1,37 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy current the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+org.apache.tamaya.karaf.shell.BackupCreateCommand
+org.apache.tamaya.karaf.shell.BackupDeleteCommand
+org.apache.tamaya.karaf.shell.BackupListCommand
+org.apache.tamaya.karaf.shell.ConfigCommand
+org.apache.tamaya.karaf.shell.DefaultDisableCommand
+org.apache.tamaya.karaf.shell.GetPolicyCommand
+org.apache.tamaya.karaf.shell.HistoryClearCommand
+org.apache.tamaya.karaf.shell.HistoryGetCommand
+org.apache.tamaya.karaf.shell.HistorySizeGetCommand
+org.apache.tamaya.karaf.shell.HistorySizeSetCommand
+org.apache.tamaya.karaf.shell.InfoCommand
+org.apache.tamaya.karaf.shell.PolicyGetCommand
+org.apache.tamaya.karaf.shell.PolicySetCommand
+org.apache.tamaya.karaf.shell.PropertyGetCommand
+org.apache.tamaya.karaf.shell.PropertySourceCommand
+org.apache.tamaya.karaf.shell.PropertySourcesCommand
+
+
+