| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" |
| xmlns:cm="http://www.osgi.org/xmlns/blueprint-cm/v1.0.0" |
| default-availability="optional"> |
| |
| <cm:property-placeholder persistent-id="org.apache.felix.karaf.shell"> |
| <cm:default-properties> |
| <cm:property name="sshPort" value="8101"/> |
| <cm:property name="sshRealm" value="karaf"/> |
| <cm:property name="hostKey" value="${karaf.base}/etc/host.key"/> |
| </cm:default-properties> |
| </cm:property-placeholder> |
| |
| <bean id="osgiCommandRegistry" class="org.apache.felix.karaf.gshell.core.OsgiCommandRegistry"> |
| <argument ref="commandRegistry"/> |
| </bean> |
| |
| <bean id="osgiAliasRegistry" class="org.apache.felix.karaf.gshell.core.OsgiAliasRegistry"> |
| <argument ref="aliasRegistry"/> |
| </bean> |
| |
| <ref-list id="osgiCommands" interface="org.apache.geronimo.gshell.command.Command"> |
| <listener ref="osgiCommandRegistry" bind-method="register" unbind-method="unregister"/> |
| </ref-list> |
| |
| <ref-list id="osgiLinkCommands" interface="org.apache.geronimo.gshell.command.Link"> |
| <listener ref="osgiCommandRegistry" bind-method="register" unbind-method="unregister"/> |
| </ref-list> |
| |
| <ref-list id="osgiAliases" interface="org.apache.geronimo.gshell.command.Alias"> |
| <listener ref="osgiAliasRegistry" bind-method="register" unbind-method="unregister"/> |
| </ref-list> |
| |
| <service ref="localShell" interface="org.apache.geronimo.gshell.shell.Shell"/> |
| |
| <service ref="commandLineExecutor" interface="org.apache.geronimo.gshell.commandline.CommandLineExecutor"/> |
| |
| </blueprint> |