blob: 8ad512eda4b7ef0d7fb9c8b24a819fbd40a730c2 [file] [log] [blame]
Guillaume Nodet05fac962009-04-27 10:01:58 +00001<?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 Nodet05fac962009-04-27 10:01:58 +000038 <gshell:command-bundle>
39 <gshell:command name="config/cancel">
Guillaume Nodet810fec92009-05-04 11:26:15 +000040 <gshell:action class="org.apache.felix.karaf.gshell.config.CancelCommand">
41 <property name="bundleContext" ref="bundleContext"/>
42 </gshell:action>
Guillaume Nodet05fac962009-04-27 10:01:58 +000043 </gshell:command>
44 <gshell:command name="config/edit">
Guillaume Nodet810fec92009-05-04 11:26:15 +000045 <gshell:action class="org.apache.felix.karaf.gshell.config.EditCommand">
46 <property name="bundleContext" ref="bundleContext"/>
47 </gshell:action>
Guillaume Nodet05fac962009-04-27 10:01:58 +000048 <gshell:completers>
49 <ref bean="configCompleter" />
50 <null/>
51 </gshell:completers>
52 </gshell:command>
53 <gshell:command name="config/list">
Guillaume Nodet810fec92009-05-04 11:26:15 +000054 <gshell:action class="org.apache.felix.karaf.gshell.config.ListCommand">
55 <property name="bundleContext" ref="bundleContext"/>
56 </gshell:action>
Guillaume Nodet05fac962009-04-27 10:01:58 +000057 </gshell:command>
58 <gshell:command name="config/propdel">
Guillaume Nodet810fec92009-05-04 11:26:15 +000059 <gshell:action class="org.apache.felix.karaf.gshell.config.PropDelCommand">
60 <property name="bundleContext" ref="bundleContext"/>
61 </gshell:action>
Guillaume Nodet05fac962009-04-27 10:01:58 +000062 <gshell:completers>
63 <ref bean="configPropertyCompleter" />
64 <null/>
65 </gshell:completers>
66 </gshell:command>
67 <gshell:command name="config/proplist">
Guillaume Nodet810fec92009-05-04 11:26:15 +000068 <gshell:action class="org.apache.felix.karaf.gshell.config.PropListCommand">
69 <property name="bundleContext" ref="bundleContext"/>
70 </gshell:action>
Guillaume Nodet05fac962009-04-27 10:01:58 +000071 </gshell:command>
72 <gshell:command name="config/propset">
Guillaume Nodet810fec92009-05-04 11:26:15 +000073 <gshell:action class="org.apache.felix.karaf.gshell.config.PropSetCommand">
74 <property name="bundleContext" ref="bundleContext"/>
75 </gshell:action>
Guillaume Nodet05fac962009-04-27 10:01:58 +000076 <gshell:completers>
77 <ref bean="configPropertyCompleter" />
78 <null/>
79 </gshell:completers>
80 </gshell:command>
Guillaume Nodet4d425572009-06-11 09:35:19 +000081 <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 Nodet05fac962009-04-27 10:01:58 +000090 <gshell:command name="config/update">
Guillaume Nodet810fec92009-05-04 11:26:15 +000091 <gshell:action class="org.apache.felix.karaf.gshell.config.UpdateCommand">
92 <property name="bundleContext" ref="bundleContext"/>
93 </gshell:action>
Guillaume Nodet05fac962009-04-27 10:01:58 +000094 </gshell:command>
95 </gshell:command-bundle>
96
Gert Vanthienenf54a8392009-05-02 19:57:13 +000097 <bean id="configCompleter" class="org.apache.felix.karaf.gshell.config.completers.ConfigurationCompleter" init-method="init">
Guillaume Nodet05fac962009-04-27 10:01:58 +000098 <property name="admin" ref="configAdmin"/>
99 </bean>
100
Gert Vanthienenf54a8392009-05-02 19:57:13 +0000101 <bean id="configPropertyCompleter" class="org.apache.felix.karaf.gshell.config.completers.ConfigurationPropertyCompleter" />
Guillaume Nodet05fac962009-04-27 10:01:58 +0000102
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 Vanthienenf54a8392009-05-02 19:57:13 +0000107</beans>