Guillaume Nodet | 6b2946d | 2009-06-18 20:57:23 +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 | --> |
Guillaume Nodet | 28b63e8 | 2009-07-10 17:21:11 +0000 | [diff] [blame] | 20 | <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" |
| 21 | default-activation="lazy"> |
Guillaume Nodet | 6b2946d | 2009-06-18 20:57:23 +0000 | [diff] [blame] | 22 | |
| 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 Nodet | 6b2946d | 2009-06-18 20:57:23 +0000 | [diff] [blame] | 26 | <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 Nodet | 6b2946d | 2009-06-18 20:57:23 +0000 | [diff] [blame] | 31 | <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 Nodet | 6b2946d | 2009-06-18 20:57:23 +0000 | [diff] [blame] | 40 | <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 Nodet | 6b2946d | 2009-06-18 20:57:23 +0000 | [diff] [blame] | 45 | <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 Nodet | 6b2946d | 2009-06-18 20:57:23 +0000 | [diff] [blame] | 54 | <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 Nodet | 6b2946d | 2009-06-18 20:57:23 +0000 | [diff] [blame] | 63 | <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 Nodet | 6b2946d | 2009-06-18 20:57:23 +0000 | [diff] [blame] | 72 | <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 Vanthienen | 875d132 | 2009-08-17 06:17:31 +0000 | [diff] [blame^] | 90 | |
| 91 | <service ref="adminService" interface="org.apache.felix.karaf.gshell.admin.AdminService" /> |
Guillaume Nodet | 6b2946d | 2009-06-18 20:57:23 +0000 | [diff] [blame] | 92 | |
Guillaume Nodet | 6b2946d | 2009-06-18 20:57:23 +0000 | [diff] [blame] | 93 | </blueprint> |