Guillaume Nodet | e692a96 | 2009-08-07 09:55:51 +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:ext="http://geronimo.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"> |
| 22 | |
| 23 | <command-bundle xmlns="http://felix.apache.org/karaf/xmlns/gshell/v1.0.0"> |
| 24 | <command name="features/addUrl"> |
| 25 | <action class="org.apache.felix.karaf.features.command.AddUrlCommand"/> |
| 26 | </command> |
| 27 | <command name="features/listUrl"> |
| 28 | <action class="org.apache.felix.karaf.features.command.ListUrlCommand"/> |
| 29 | </command> |
| 30 | <command name="features/removeUrl"> |
| 31 | <action class="org.apache.felix.karaf.features.command.RemoveUrlCommand"/> |
| 32 | <completers> |
| 33 | <ref component-id="removeUrlCompleter" /> |
| 34 | </completers> |
| 35 | </command> |
| 36 | <command name="features/refreshUrl"> |
| 37 | <action class="org.apache.felix.karaf.features.command.RefreshUrlCommand"/> |
| 38 | </command> |
| 39 | <command name="features/install"> |
| 40 | <action class="org.apache.felix.karaf.features.command.InstallFeatureCommand"/> |
| 41 | <completers> |
| 42 | <ref component-id="installFeatureCompleter" /> |
| 43 | </completers> |
| 44 | </command> |
| 45 | <command name="features/uninstall"> |
| 46 | <action class="org.apache.felix.karaf.features.command.UninstallFeatureCommand"/> |
| 47 | <completers> |
| 48 | <ref component-id="uninstallFeatureCompleter" /> |
| 49 | </completers> |
| 50 | </command> |
| 51 | <command name="features/list"> |
| 52 | <action class="org.apache.felix.karaf.features.command.ListFeaturesCommand"/> |
| 53 | </command> |
| 54 | </command-bundle> |
| 55 | |
| 56 | <reference id="featuresService" interface="org.apache.felix.karaf.features.FeaturesService" /> |
| 57 | |
| 58 | <bean id="installFeatureCompleter" class="org.apache.felix.karaf.features.command.completers.AvailableFeatureCompleter"> |
| 59 | <property name="featuresService" ref="featuresService" /> |
| 60 | </bean> |
| 61 | |
| 62 | <bean id="uninstallFeatureCompleter" class="org.apache.felix.karaf.features.command.completers.InstalledFeatureCompleter"> |
| 63 | <property name="featuresService" ref="featuresService" /> |
| 64 | </bean> |
| 65 | |
| 66 | <bean id="removeUrlCompleter" class="org.apache.felix.karaf.features.command.completers.FeatureRepositoryCompleter"> |
| 67 | <property name="featuresService" ref="featuresService" /> |
| 68 | </bean> |
| 69 | |
| 70 | </blueprint> |