blob: 07c3ca7a91dfc86d8a284a797345875bdbc53c57 [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="admin/create">
Guillaume Nodet810fec92009-05-04 11:26:15 +000040 <gshell:action class="org.apache.felix.karaf.gshell.admin.internal.commands.CreateCommand">
41 <property name="bundleContext" ref="bundleContext"/>
42 <property name="adminService" ref="adminService" />
43 </gshell:action>
Guillaume Nodet05fac962009-04-27 10:01:58 +000044 </gshell:command>
45 <gshell:command name="admin/connect">
Guillaume Nodet810fec92009-05-04 11:26:15 +000046 <gshell:action class="org.apache.felix.karaf.gshell.admin.internal.commands.ConnectCommand">
47 <property name="bundleContext" ref="bundleContext"/>
48 <property name="adminService" ref="adminService" />
49 </gshell:action>
Guillaume Nodet05fac962009-04-27 10:01:58 +000050 <gshell:completers>
51 <ref bean="instanceCompleter" />
52 <null/>
53 </gshell:completers>
54 </gshell:command>
55 <gshell:command name="admin/list">
Guillaume Nodet810fec92009-05-04 11:26:15 +000056 <gshell:action class="org.apache.felix.karaf.gshell.admin.internal.commands.ListCommand">
57 <property name="bundleContext" ref="bundleContext"/>
58 <property name="adminService" ref="adminService" />
59 </gshell:action>
Guillaume Nodet05fac962009-04-27 10:01:58 +000060 </gshell:command>
61 <gshell:command name="admin/start">
Guillaume Nodet810fec92009-05-04 11:26:15 +000062 <gshell:action class="org.apache.felix.karaf.gshell.admin.internal.commands.StartCommand">
63 <property name="bundleContext" ref="bundleContext"/>
64 <property name="adminService" ref="adminService" />
65 </gshell:action>
Guillaume Nodet05fac962009-04-27 10:01:58 +000066 <gshell:completers>
67 <ref bean="instanceCompleter" />
68 <null/>
69 </gshell:completers>
70 </gshell:command>
71 <gshell:command name="admin/stop">
Guillaume Nodet810fec92009-05-04 11:26:15 +000072 <gshell:action class="org.apache.felix.karaf.gshell.admin.internal.commands.StopCommand">
73 <property name="bundleContext" ref="bundleContext"/>
74 <property name="adminService" ref="adminService" />
75 </gshell:action>
Guillaume Nodet05fac962009-04-27 10:01:58 +000076 <gshell:completers>
77 <ref bean="instanceCompleter" />
78 <null/>
79 </gshell:completers>
80 </gshell:command>
81 <gshell:command name="admin/destroy">
Guillaume Nodet810fec92009-05-04 11:26:15 +000082 <gshell:action class="org.apache.felix.karaf.gshell.admin.internal.commands.DestroyCommand">
83 <property name="bundleContext" ref="bundleContext"/>
84 <property name="adminService" ref="adminService" />
85 </gshell:action>
Guillaume Nodet05fac962009-04-27 10:01:58 +000086 <gshell:completers>
87 <ref bean="instanceCompleter" />
88 <null/>
89 </gshell:completers>
90 </gshell:command>
91 <gshell:command name="admin/change-port">
Guillaume Nodet810fec92009-05-04 11:26:15 +000092 <gshell:action class="org.apache.felix.karaf.gshell.admin.internal.commands.ChangePortCommand">
93 <property name="bundleContext" ref="bundleContext"/>
94 <property name="adminService" ref="adminService" />
95 </gshell:action>
Guillaume Nodet05fac962009-04-27 10:01:58 +000096 <gshell:completers>
97 <ref bean="instanceCompleter" />
98 <null/>
99 </gshell:completers>
100 </gshell:command>
101 </gshell:command-bundle>
102
103 <osgi:reference id="preferences" interface="org.osgi.service.prefs.PreferencesService" cardinality="0..1" />
104
Guillaume Nodet5be92962009-05-04 07:02:13 +0000105 <bean id="adminService" class="org.apache.felix.karaf.gshell.admin.internal.AdminServiceImpl" init-method="init">
Guillaume Nodet05fac962009-04-27 10:01:58 +0000106 <property name="preferences" ref="preferences" />
107 </bean>
108
Gert Vanthienenf54a8392009-05-02 19:57:13 +0000109 <bean id="instanceCompleter" class="org.apache.felix.karaf.gshell.admin.internal.completers.InstanceCompleter">
Guillaume Nodet05fac962009-04-27 10:01:58 +0000110 <property name="adminService" ref="adminService" />
111 </bean>
112
113
Gert Vanthienenf54a8392009-05-02 19:57:13 +0000114</beans>