blob: d92260a36bfae4627f7a8006531126f007750003 [file] [log] [blame]
Guillaume Nodet6b2946d2009-06-18 20:57:23 +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-->
Guillaume Nodet28b63e82009-07-10 17:21:11 +000020<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
21 default-activation="lazy">
Guillaume Nodet6b2946d2009-06-18 20:57:23 +000022
23 <command-bundle xmlns="http://felix.apache.org/karaf/xmlns/gshell/v1.0.0">
24 <command name="admin/create">
25 <action class="org.apache.felix.karaf.gshell.admin.internal.commands.CreateCommand">
Guillaume Nodet6b2946d2009-06-18 20:57:23 +000026 <property name="adminService" ref="adminService" />
27 </action>
28 </command>
29 <command name="admin/connect">
30 <action class="org.apache.felix.karaf.gshell.admin.internal.commands.ConnectCommand">
Guillaume Nodet6b2946d2009-06-18 20:57:23 +000031 <property name="adminService" ref="adminService" />
32 </action>
33 <completers>
34 <ref component-id="instanceCompleter" />
35 <null/>
36 </completers>
37 </command>
38 <command name="admin/list">
39 <action class="org.apache.felix.karaf.gshell.admin.internal.commands.ListCommand">
Guillaume Nodet6b2946d2009-06-18 20:57:23 +000040 <property name="adminService" ref="adminService" />
41 </action>
42 </command>
43 <command name="admin/start">
44 <action class="org.apache.felix.karaf.gshell.admin.internal.commands.StartCommand">
Guillaume Nodet6b2946d2009-06-18 20:57:23 +000045 <property name="adminService" ref="adminService" />
46 </action>
47 <completers>
48 <ref component-id="instanceCompleter" />
49 <null/>
50 </completers>
51 </command>
52 <command name="admin/stop">
53 <action class="org.apache.felix.karaf.gshell.admin.internal.commands.StopCommand">
Guillaume Nodet6b2946d2009-06-18 20:57:23 +000054 <property name="adminService" ref="adminService" />
55 </action>
56 <completers>
57 <ref component-id="instanceCompleter" />
58 <null/>
59 </completers>
60 </command>
61 <command name="admin/destroy">
62 <action class="org.apache.felix.karaf.gshell.admin.internal.commands.DestroyCommand">
Guillaume Nodet6b2946d2009-06-18 20:57:23 +000063 <property name="adminService" ref="adminService" />
64 </action>
65 <completers>
66 <ref component-id="instanceCompleter" />
67 <null/>
68 </completers>
69 </command>
70 <command name="admin/change-port">
71 <action class="org.apache.felix.karaf.gshell.admin.internal.commands.ChangePortCommand">
Guillaume Nodet6b2946d2009-06-18 20:57:23 +000072 <property name="adminService" ref="adminService" />
73 </action>
74 <completers>
75 <ref component-id="instanceCompleter" />
76 <null/>
77 </completers>
78 </command>
79 </command-bundle>
80
81 <reference id="preferences" interface="org.osgi.service.prefs.PreferencesService" availability="optional"/>
82
83 <bean id="adminService" class="org.apache.felix.karaf.gshell.admin.internal.AdminServiceImpl" init-method="init">
84 <property name="preferences" ref="preferences" />
85 </bean>
86
87 <bean id="instanceCompleter" class="org.apache.felix.karaf.gshell.admin.internal.completers.InstanceCompleter">
88 <property name="adminService" ref="adminService" />
89 </bean>
Gert Vanthienen875d1322009-08-17 06:17:31 +000090
91 <service ref="adminService" interface="org.apache.felix.karaf.gshell.admin.AdminService" />
Guillaume Nodet6b2946d2009-06-18 20:57:23 +000092
Guillaume Nodet6b2946d2009-06-18 20:57:23 +000093</blueprint>