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="admin/create"> |
Guillaume Nodet | 810fec9 | 2009-05-04 11:26:15 +0000 | [diff] [blame] | 40 | <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 Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 44 | </gshell:command> |
| 45 | <gshell:command name="admin/connect"> |
Guillaume Nodet | 810fec9 | 2009-05-04 11:26:15 +0000 | [diff] [blame] | 46 | <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 Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 50 | <gshell:completers> |
| 51 | <ref bean="instanceCompleter" /> |
| 52 | <null/> |
| 53 | </gshell:completers> |
| 54 | </gshell:command> |
| 55 | <gshell:command name="admin/list"> |
Guillaume Nodet | 810fec9 | 2009-05-04 11:26:15 +0000 | [diff] [blame] | 56 | <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 Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 60 | </gshell:command> |
| 61 | <gshell:command name="admin/start"> |
Guillaume Nodet | 810fec9 | 2009-05-04 11:26:15 +0000 | [diff] [blame] | 62 | <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 Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 66 | <gshell:completers> |
| 67 | <ref bean="instanceCompleter" /> |
| 68 | <null/> |
| 69 | </gshell:completers> |
| 70 | </gshell:command> |
| 71 | <gshell:command name="admin/stop"> |
Guillaume Nodet | 810fec9 | 2009-05-04 11:26:15 +0000 | [diff] [blame] | 72 | <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 Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 76 | <gshell:completers> |
| 77 | <ref bean="instanceCompleter" /> |
| 78 | <null/> |
| 79 | </gshell:completers> |
| 80 | </gshell:command> |
| 81 | <gshell:command name="admin/destroy"> |
Guillaume Nodet | 810fec9 | 2009-05-04 11:26:15 +0000 | [diff] [blame] | 82 | <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 Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 86 | <gshell:completers> |
| 87 | <ref bean="instanceCompleter" /> |
| 88 | <null/> |
| 89 | </gshell:completers> |
| 90 | </gshell:command> |
| 91 | <gshell:command name="admin/change-port"> |
Guillaume Nodet | 810fec9 | 2009-05-04 11:26:15 +0000 | [diff] [blame] | 92 | <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 Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 96 | <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 Nodet | 5be9296 | 2009-05-04 07:02:13 +0000 | [diff] [blame] | 105 | <bean id="adminService" class="org.apache.felix.karaf.gshell.admin.internal.AdminServiceImpl" init-method="init"> |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 106 | <property name="preferences" ref="preferences" /> |
| 107 | </bean> |
| 108 | |
Gert Vanthienen | f54a839 | 2009-05-02 19:57:13 +0000 | [diff] [blame] | 109 | <bean id="instanceCompleter" class="org.apache.felix.karaf.gshell.admin.internal.completers.InstanceCompleter"> |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 110 | <property name="adminService" ref="adminService" /> |
| 111 | </bean> |
| 112 | |
| 113 | |
Gert Vanthienen | f54a839 | 2009-05-02 19:57:13 +0000 | [diff] [blame] | 114 | </beans> |