Author: jbonofre
Date: Wed Mar 14 07:35:49 2012
New Revision: 1300472
URL: http://svn.apache.org/viewvc?rev=1300472&view=rev
Log:
[KARAF-638] Severl checkstyle fixes and apply command naming convention to
config:* commands
Modified:
karaf/trunk/config/command/src/main/java/org/apache/karaf/config/command/ConfigPropertyCommandSupport.java
karaf/trunk/config/command/src/main/java/org/apache/karaf/config/command/PropAppendCommand.java
karaf/trunk/config/command/src/main/java/org/apache/karaf/config/command/PropDelCommand.java
karaf/trunk/config/command/src/main/java/org/apache/karaf/config/command/PropListCommand.java
karaf/trunk/config/command/src/main/java/org/apache/karaf/config/command/PropSetCommand.java
karaf/trunk/config/core/src/main/java/org/apache/karaf/config/core/ConfigRepository.java
Modified:
karaf/trunk/config/command/src/main/java/org/apache/karaf/config/command/ConfigPropertyCommandSupport.java
URL:
http://svn.apache.org/viewvc/karaf/trunk/config/command/src/main/java/org/apache/karaf/config/command/ConfigPropertyCommandSupport.java?rev=1300472&r1=1300471&r2=1300472&view=diff
==============================================================================
---
karaf/trunk/config/command/src/main/java/org/apache/karaf/config/command/ConfigPropertyCommandSupport.java
(original)
+++
karaf/trunk/config/command/src/main/java/org/apache/karaf/config/command/ConfigPropertyCommandSupport.java
Wed Mar 14 07:35:49 2012
@@ -1,3 +1,19 @@
+/*
+ * 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.karaf.config.command;
import java.util.Dictionary;
Modified:
karaf/trunk/config/command/src/main/java/org/apache/karaf/config/command/PropAppendCommand.java
URL:
http://svn.apache.org/viewvc/karaf/trunk/config/command/src/main/java/org/apache/karaf/config/command/PropAppendCommand.java?rev=1300472&r1=1300471&r2=1300472&view=diff
==============================================================================
---
karaf/trunk/config/command/src/main/java/org/apache/karaf/config/command/PropAppendCommand.java
(original)
+++
karaf/trunk/config/command/src/main/java/org/apache/karaf/config/command/PropAppendCommand.java
Wed Mar 14 07:35:49 2012
@@ -21,10 +21,7 @@ import java.util.Dictionary;
import org.apache.karaf.shell.commands.Argument;
import org.apache.karaf.shell.commands.Command;
-/**
- * Appends a value to the current property value.
- */
-@Command(scope = "config", name = "append-property", description = "Appends
the given value to an existing property or creates the property with the
specified name and value.")
+@Command(scope = "config", name = "property-append", description = "Appends
the given value to an existing property or creates the property with the
specified name and value.")
public class PropAppendCommand extends ConfigPropertyCommandSupport {
@Argument(index = 0, name = "name", description = "The name of the
property", required = true, multiValued = false)
Modified:
karaf/trunk/config/command/src/main/java/org/apache/karaf/config/command/PropDelCommand.java
URL:
http://svn.apache.org/viewvc/karaf/trunk/config/command/src/main/java/org/apache/karaf/config/command/PropDelCommand.java?rev=1300472&r1=1300471&r2=1300472&view=diff
==============================================================================
---
karaf/trunk/config/command/src/main/java/org/apache/karaf/config/command/PropDelCommand.java
(original)
+++
karaf/trunk/config/command/src/main/java/org/apache/karaf/config/command/PropDelCommand.java
Wed Mar 14 07:35:49 2012
@@ -21,7 +21,7 @@ import java.util.Dictionary;
import org.apache.karaf.shell.commands.Argument;
import org.apache.karaf.shell.commands.Command;
-@Command(scope = "config", name = "delete-property", description = "Deletes a
property from the configuration being edited.")
+@Command(scope = "config", name = "property-delete", description = "Deletes a
property from the configuration being edited.")
public class PropDelCommand extends ConfigPropertyCommandSupport {
@Argument(index = 0, name = "property", description = "The name of the
property to delete", required = true, multiValued = false)
Modified:
karaf/trunk/config/command/src/main/java/org/apache/karaf/config/command/PropListCommand.java
URL:
http://svn.apache.org/viewvc/karaf/trunk/config/command/src/main/java/org/apache/karaf/config/command/PropListCommand.java?rev=1300472&r1=1300471&r2=1300472&view=diff
==============================================================================
---
karaf/trunk/config/command/src/main/java/org/apache/karaf/config/command/PropListCommand.java
(original)
+++
karaf/trunk/config/command/src/main/java/org/apache/karaf/config/command/PropListCommand.java
Wed Mar 14 07:35:49 2012
@@ -20,8 +20,7 @@ import java.util.Dictionary;
import java.util.Enumeration;
import org.apache.karaf.shell.commands.Command;
-
-@Command(scope = "config", name = "list-property", description = "Lists
properties from the currently edited configuration.")
+@Command(scope = "config", name = "property-list", description = "Lists
properties from the currently edited configuration.")
public class PropListCommand extends ConfigPropertyCommandSupport {
@SuppressWarnings("rawtypes")
Modified:
karaf/trunk/config/command/src/main/java/org/apache/karaf/config/command/PropSetCommand.java
URL:
http://svn.apache.org/viewvc/karaf/trunk/config/command/src/main/java/org/apache/karaf/config/command/PropSetCommand.java?rev=1300472&r1=1300471&r2=1300472&view=diff
==============================================================================
---
karaf/trunk/config/command/src/main/java/org/apache/karaf/config/command/PropSetCommand.java
(original)
+++
karaf/trunk/config/command/src/main/java/org/apache/karaf/config/command/PropSetCommand.java
Wed Mar 14 07:35:49 2012
@@ -21,7 +21,7 @@ import java.util.Dictionary;
import org.apache.karaf.shell.commands.Argument;
import org.apache.karaf.shell.commands.Command;
-@Command(scope = "config", name = "set-property", description = "Sets a
property in the currently edited configuration.")
+@Command(scope = "config", name = "property-set", description = "Sets a
property in the currently edited configuration.")
public class PropSetCommand extends ConfigPropertyCommandSupport {
@Argument(index = 0, name = "property", description = "The name of the
property to set", required = true, multiValued = false)
Modified:
karaf/trunk/config/core/src/main/java/org/apache/karaf/config/core/ConfigRepository.java
URL:
http://svn.apache.org/viewvc/karaf/trunk/config/core/src/main/java/org/apache/karaf/config/core/ConfigRepository.java?rev=1300472&r1=1300471&r2=1300472&view=diff
==============================================================================
---
karaf/trunk/config/core/src/main/java/org/apache/karaf/config/core/ConfigRepository.java
(original)
+++
karaf/trunk/config/core/src/main/java/org/apache/karaf/config/core/ConfigRepository.java
Wed Mar 14 07:35:49 2012
@@ -1,3 +1,19 @@
+/*
+ * 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.karaf.config.core;
import java.io.IOException;
@@ -22,7 +38,6 @@ public interface ConfigRepository {
* Saves config to storage or ConfigurationAdmin.
* @param pid
* @param props
- * @param bypassStorage
* @throws IOException
*/
@SuppressWarnings("rawtypes")