You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2015/01/14 15:38:44 UTC
[07/12] camel git commit: CAMEL-8242: Camel Toolbox - Include
documentation about languages
CAMEL-8242: Camel Toolbox - Include documentation about languages
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/7ccb1b9f
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/7ccb1b9f
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/7ccb1b9f
Branch: refs/heads/master
Commit: 7ccb1b9f4d8a244c056b77c40224fa42c4f57d75
Parents: 09bbc12
Author: Claus Ibsen <da...@apache.org>
Authored: Wed Jan 14 14:32:26 2015 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Wed Jan 14 15:38:24 2015 +0100
----------------------------------------------------------------------
.../commands/CatalogLanguageLabelList.java | 35 ++++++++++++++++++
.../karaf/commands/CatalogLanguageList.java | 39 ++++++++++++++++++++
.../OSGI-INF/blueprint/camel-commands.xml | 10 +++++
3 files changed, 84 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/7ccb1b9f/platforms/karaf/commands/src/main/java/org/apache/camel/karaf/commands/CatalogLanguageLabelList.java
----------------------------------------------------------------------
diff --git a/platforms/karaf/commands/src/main/java/org/apache/camel/karaf/commands/CatalogLanguageLabelList.java b/platforms/karaf/commands/src/main/java/org/apache/camel/karaf/commands/CatalogLanguageLabelList.java
new file mode 100644
index 0000000..55d5586
--- /dev/null
+++ b/platforms/karaf/commands/src/main/java/org/apache/camel/karaf/commands/CatalogLanguageLabelList.java
@@ -0,0 +1,35 @@
+/**
+ * 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.camel.karaf.commands;
+
+import org.apache.camel.commands.CatalogLanguageLabelListCommand;
+import org.apache.felix.gogo.commands.Command;
+import org.apache.felix.gogo.commands.Option;
+
+@Command(scope = "camel", name = "catalog-component-label-list", description = "Lists all Camel language labels from the Camel catalog")
+public class CatalogLanguageLabelList extends CamelCommandSupport {
+
+ @Option(name = "--verbose", aliases = "-v", description = "Verbose output which shows more information",
+ required = false, multiValued = false, valueToShowInHelp = "false")
+ boolean verbose;
+
+ protected Object doExecute() throws Exception {
+ CatalogLanguageLabelListCommand command = new CatalogLanguageLabelListCommand(verbose);
+ return command.execute(camelController, System.out, System.err);
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/7ccb1b9f/platforms/karaf/commands/src/main/java/org/apache/camel/karaf/commands/CatalogLanguageList.java
----------------------------------------------------------------------
diff --git a/platforms/karaf/commands/src/main/java/org/apache/camel/karaf/commands/CatalogLanguageList.java b/platforms/karaf/commands/src/main/java/org/apache/camel/karaf/commands/CatalogLanguageList.java
new file mode 100644
index 0000000..f433a4f
--- /dev/null
+++ b/platforms/karaf/commands/src/main/java/org/apache/camel/karaf/commands/CatalogLanguageList.java
@@ -0,0 +1,39 @@
+/**
+ * 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.camel.karaf.commands;
+
+import org.apache.camel.commands.CatalogLanguageListCommand;
+import org.apache.felix.gogo.commands.Command;
+import org.apache.felix.gogo.commands.Option;
+
+@Command(scope = "camel", name = "catalog-language-list", description = "Lists all Camel languages from the Camel catalog")
+public class CatalogLanguageList extends CamelCommandSupport {
+
+ @Option(name = "--verbose", aliases = "-v", description = "Verbose output which shows more information",
+ required = false, multiValued = false, valueToShowInHelp = "false")
+ boolean verbose;
+
+ @Option(name = "--label", aliases = "-l", description = "To filter languages by their label(s), such as xpath",
+ required = false, multiValued = false)
+ String label;
+
+ protected Object doExecute() throws Exception {
+ CatalogLanguageListCommand command = new CatalogLanguageListCommand(verbose, label);
+ return command.execute(camelController, System.out, System.err);
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/7ccb1b9f/platforms/karaf/commands/src/main/resources/OSGI-INF/blueprint/camel-commands.xml
----------------------------------------------------------------------
diff --git a/platforms/karaf/commands/src/main/resources/OSGI-INF/blueprint/camel-commands.xml b/platforms/karaf/commands/src/main/resources/OSGI-INF/blueprint/camel-commands.xml
index 83d4797..1c822ef 100644
--- a/platforms/karaf/commands/src/main/resources/OSGI-INF/blueprint/camel-commands.xml
+++ b/platforms/karaf/commands/src/main/resources/OSGI-INF/blueprint/camel-commands.xml
@@ -235,6 +235,16 @@
<property name="camelController" ref="camelController"/>
</action>
</command>
+ <command name="camel/catalog-language-list">
+ <action class="org.apache.camel.karaf.commands.CatalogLanguageList">
+ <property name="camelController" ref="camelController"/>
+ </action>
+ </command>
+ <command name="camel/catalog-language-label-list">
+ <action class="org.apache.camel.karaf.commands.CatalogLanguageLabelList">
+ <property name="camelController" ref="camelController"/>
+ </action>
+ </command>
<command name="camel/catalog-eip-list">
<action class="org.apache.camel.karaf.commands.CatalogEipList">
<property name="camelController" ref="camelController"/>