Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | |
| 4 | Licensed to the Apache Software Foundation (ASF) under one or more |
| 5 | contributor license agreements. See the NOTICE file distributed with |
| 6 | this work for additional information regarding copyright ownership. |
| 7 | The ASF licenses this file to You under the Apache License, Version 2.0 |
| 8 | (the "License"); you may not use this file except in compliance with |
| 9 | the License. You may obtain a copy of the License at |
| 10 | |
| 11 | http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | |
| 13 | Unless required by applicable law or agreed to in writing, software |
| 14 | distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | See the License for the specific language governing permissions and |
| 17 | limitations under the License. |
| 18 | |
| 19 | --> |
| 20 | <beans xmlns="http://www.springframework.org/schema/beans" |
| 21 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 22 | xmlns:osgi="http://www.springframework.org/schema/osgi" |
| 23 | xmlns:osgix="http://www.springframework.org/schema/osgi-compendium" |
| 24 | xmlns:util="http://www.springframework.org/schema/util" |
| 25 | xmlns:gshell="http://servicemix.apache.org/schema/servicemix-gshell" |
| 26 | xsi:schemaLocation=" |
| 27 | http://www.springframework.org/schema/beans |
| 28 | http://www.springframework.org/schema/beans/spring-beans.xsd |
| 29 | http://www.springframework.org/schema/osgi |
| 30 | http://www.springframework.org/schema/osgi/spring-osgi.xsd |
| 31 | http://www.springframework.org/schema/osgi-compendium |
| 32 | http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium.xsd |
| 33 | http://www.springframework.org/schema/util |
| 34 | http://www.springframework.org/schema/util/spring-util.xsd |
| 35 | http://servicemix.apache.org/schema/servicemix-gshell |
| 36 | http://servicemix.apache.org/schema/servicemix-gshell/servicemix-gshell.xsd"> |
| 37 | |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 38 | <gshell:command-bundle> |
| 39 | <gshell:command name="config/cancel"> |
Guillaume Nodet | 810fec9 | 2009-05-04 11:26:15 +0000 | [diff] [blame] | 40 | <gshell:action class="org.apache.felix.karaf.gshell.config.CancelCommand"> |
| 41 | <property name="bundleContext" ref="bundleContext"/> |
| 42 | </gshell:action> |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 43 | </gshell:command> |
| 44 | <gshell:command name="config/edit"> |
Guillaume Nodet | 810fec9 | 2009-05-04 11:26:15 +0000 | [diff] [blame] | 45 | <gshell:action class="org.apache.felix.karaf.gshell.config.EditCommand"> |
| 46 | <property name="bundleContext" ref="bundleContext"/> |
| 47 | </gshell:action> |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 48 | <gshell:completers> |
| 49 | <ref bean="configCompleter" /> |
| 50 | <null/> |
| 51 | </gshell:completers> |
| 52 | </gshell:command> |
| 53 | <gshell:command name="config/list"> |
Guillaume Nodet | 810fec9 | 2009-05-04 11:26:15 +0000 | [diff] [blame] | 54 | <gshell:action class="org.apache.felix.karaf.gshell.config.ListCommand"> |
| 55 | <property name="bundleContext" ref="bundleContext"/> |
| 56 | </gshell:action> |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 57 | </gshell:command> |
| 58 | <gshell:command name="config/propdel"> |
Guillaume Nodet | 810fec9 | 2009-05-04 11:26:15 +0000 | [diff] [blame] | 59 | <gshell:action class="org.apache.felix.karaf.gshell.config.PropDelCommand"> |
| 60 | <property name="bundleContext" ref="bundleContext"/> |
| 61 | </gshell:action> |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 62 | <gshell:completers> |
| 63 | <ref bean="configPropertyCompleter" /> |
| 64 | <null/> |
| 65 | </gshell:completers> |
| 66 | </gshell:command> |
| 67 | <gshell:command name="config/proplist"> |
Guillaume Nodet | 810fec9 | 2009-05-04 11:26:15 +0000 | [diff] [blame] | 68 | <gshell:action class="org.apache.felix.karaf.gshell.config.PropListCommand"> |
| 69 | <property name="bundleContext" ref="bundleContext"/> |
| 70 | </gshell:action> |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 71 | </gshell:command> |
| 72 | <gshell:command name="config/propset"> |
Guillaume Nodet | 810fec9 | 2009-05-04 11:26:15 +0000 | [diff] [blame] | 73 | <gshell:action class="org.apache.felix.karaf.gshell.config.PropSetCommand"> |
| 74 | <property name="bundleContext" ref="bundleContext"/> |
| 75 | </gshell:action> |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 76 | <gshell:completers> |
| 77 | <ref bean="configPropertyCompleter" /> |
| 78 | <null/> |
| 79 | </gshell:completers> |
| 80 | </gshell:command> |
Guillaume Nodet | 4d42557 | 2009-06-11 09:35:19 +0000 | [diff] [blame] | 81 | <gshell:command name="config/propappend"> |
| 82 | <gshell:action class="org.apache.felix.karaf.gshell.config.PropAppendCommand"> |
| 83 | <property name="bundleContext" ref="bundleContext"/> |
| 84 | </gshell:action> |
| 85 | <gshell:completers> |
| 86 | <ref bean="configPropertyCompleter" /> |
| 87 | <null/> |
| 88 | </gshell:completers> |
| 89 | </gshell:command> |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 90 | <gshell:command name="config/update"> |
Guillaume Nodet | 810fec9 | 2009-05-04 11:26:15 +0000 | [diff] [blame] | 91 | <gshell:action class="org.apache.felix.karaf.gshell.config.UpdateCommand"> |
| 92 | <property name="bundleContext" ref="bundleContext"/> |
| 93 | </gshell:action> |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 94 | </gshell:command> |
| 95 | </gshell:command-bundle> |
| 96 | |
Gert Vanthienen | f54a839 | 2009-05-02 19:57:13 +0000 | [diff] [blame] | 97 | <bean id="configCompleter" class="org.apache.felix.karaf.gshell.config.completers.ConfigurationCompleter" init-method="init"> |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 98 | <property name="admin" ref="configAdmin"/> |
| 99 | </bean> |
| 100 | |
Gert Vanthienen | f54a839 | 2009-05-02 19:57:13 +0000 | [diff] [blame] | 101 | <bean id="configPropertyCompleter" class="org.apache.felix.karaf.gshell.config.completers.ConfigurationPropertyCompleter" /> |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 102 | |
| 103 | <osgi:reference id="configAdmin" interface="org.osgi.service.cm.ConfigurationAdmin" /> |
| 104 | |
| 105 | <osgi:service ref="configCompleter" interface="org.osgi.service.cm.ConfigurationListener" /> |
| 106 | |
Gert Vanthienen | f54a839 | 2009-05-02 19:57:13 +0000 | [diff] [blame] | 107 | </beans> |