Guillaume Nodet | 756cf8e | 2009-08-07 09:48:21 +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 | <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" |
| 21 | xmlns:cm="http://www.osgi.org/xmlns/blueprint-cm/v1.0.0"> |
| 22 | |
| 23 | <reference id="commandProcessor" interface="org.osgi.service.command.CommandProcessor" /> |
| 24 | |
| 25 | <bean id="gogoPlugin" class="org.apache.felix.karaf.webconsole.gogo.GogoPlugin" init-method="start" destroy-method="stop"> |
| 26 | <property name="completers"> |
| 27 | <list> |
| 28 | <ref component-id="commandCompleter"/> |
| 29 | </list> |
| 30 | </property> |
| 31 | <property name="commandProcessor" ref="commandProcessor" /> |
| 32 | <property name="bundleContext" ref="blueprintBundleContext" /> |
| 33 | </bean> |
| 34 | |
| 35 | <reference-list id="functions" filter="(&(osgi.command.scope=*)(osgi.command.function=*))" availability="optional"> |
| 36 | <reference-listener ref="commandCompleter" |
| 37 | bind-method="register" |
| 38 | unbind-method="unregister"/> |
| 39 | </reference-list> |
| 40 | |
| 41 | <bean id="commandCompleter" class="org.apache.felix.karaf.gshell.console.completer.CommandsCompleter"> |
| 42 | <property name="bundleContext" ref="blueprintBundleContext" /> |
| 43 | </bean> |
| 44 | |
| 45 | <service ref="gogoPlugin" interface="javax.servlet.Servlet" > |
| 46 | <service-properties> |
| 47 | <entry key="felix.webconsole.label" value="gogo"/> |
| 48 | </service-properties> |
| 49 | </service> |
| 50 | |
| 51 | </blueprint> |