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 | --> |
| 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 | default-availability="optional"> |
| 23 | |
| 24 | <cm:property-placeholder persistent-id="org.apache.felix.karaf.shell"> |
| 25 | <cm:default-properties> |
| 26 | <cm:property name="sshPort" value="8101"/> |
| 27 | <cm:property name="sshRealm" value="karaf"/> |
| 28 | <cm:property name="hostKey" value="${karaf.base}/etc/host.key"/> |
| 29 | </cm:default-properties> |
| 30 | </cm:property-placeholder> |
| 31 | |
| 32 | <bean id="osgiCommandRegistry" class="org.apache.felix.karaf.gshell.core.OsgiCommandRegistry"> |
| 33 | <argument ref="commandRegistry"/> |
| 34 | </bean> |
| 35 | |
| 36 | <bean id="osgiAliasRegistry" class="org.apache.felix.karaf.gshell.core.OsgiAliasRegistry"> |
| 37 | <argument ref="aliasRegistry"/> |
| 38 | </bean> |
| 39 | |
| 40 | <ref-list id="osgiCommands" interface="org.apache.geronimo.gshell.command.Command"> |
| 41 | <listener ref="osgiCommandRegistry" bind-method="register" unbind-method="unregister"/> |
| 42 | </ref-list> |
| 43 | |
| 44 | <ref-list id="osgiLinkCommands" interface="org.apache.geronimo.gshell.command.Link"> |
| 45 | <listener ref="osgiCommandRegistry" bind-method="register" unbind-method="unregister"/> |
| 46 | </ref-list> |
| 47 | |
| 48 | <ref-list id="osgiAliases" interface="org.apache.geronimo.gshell.command.Alias"> |
| 49 | <listener ref="osgiAliasRegistry" bind-method="register" unbind-method="unregister"/> |
| 50 | </ref-list> |
| 51 | |
| 52 | <service ref="localShell" interface="org.apache.geronimo.gshell.shell.Shell"/> |
| 53 | |
| 54 | <service ref="commandLineExecutor" interface="org.apache.geronimo.gshell.commandline.CommandLineExecutor"/> |
| 55 | |
| 56 | </blueprint> |