blob: d9b3f8c81d00a4a4a0bc1b038171a1160f025b28 [file] [log] [blame]
Guillaume Nodete692a962009-08-07 09:55:51 +00001<?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"
Guillaume Nodetcf99b612010-02-20 20:23:14 +000021 xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0">
Guillaume Nodete692a962009-08-07 09:55:51 +000022
Guillaume Nodet23a0f3d2009-09-18 20:14:54 +000023 <command-bundle xmlns="http://felix.apache.org/karaf/xmlns/shell/v1.0.0">
Guillaume Nodete692a962009-08-07 09:55:51 +000024 <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>
Guillaume Nodet4f29a6a2010-06-21 08:32:00 +000042 <ref component-id="uninstalledFeatureCompleter" />
Guillaume Nodete692a962009-08-07 09:55:51 +000043 </completers>
44 </command>
45 <command name="features/uninstall">
46 <action class="org.apache.felix.karaf.features.command.UninstallFeatureCommand"/>
47 <completers>
Guillaume Nodet4f29a6a2010-06-21 08:32:00 +000048 <ref component-id="installedFeatureCompleter" />
Guillaume Nodete692a962009-08-07 09:55:51 +000049 </completers>
50 </command>
51 <command name="features/list">
52 <action class="org.apache.felix.karaf.features.command.ListFeaturesCommand"/>
53 </command>
Guillaume Nodet4f29a6a2010-06-21 08:32:00 +000054 <command name="features/info">
55 <action class="org.apache.felix.karaf.features.command.InfoFeatureCommand"/>
56 <completers>
57 <ref component-id="allFeatureCompleter" />
58 </completers>
59 </command>
Guillaume Nodete692a962009-08-07 09:55:51 +000060 </command-bundle>
61
62 <reference id="featuresService" interface="org.apache.felix.karaf.features.FeaturesService" />
63
Guillaume Nodet4f29a6a2010-06-21 08:32:00 +000064 <bean id="uninstalledFeatureCompleter" class="org.apache.felix.karaf.features.command.completers.AvailableFeatureCompleter">
Guillaume Nodete692a962009-08-07 09:55:51 +000065 <property name="featuresService" ref="featuresService" />
66 </bean>
67
Guillaume Nodet4f29a6a2010-06-21 08:32:00 +000068 <bean id="installedFeatureCompleter" class="org.apache.felix.karaf.features.command.completers.InstalledFeatureCompleter">
69 <property name="featuresService" ref="featuresService" />
70 </bean>
71
72 <bean id="allFeatureCompleter" class="org.apache.felix.karaf.features.command.completers.AllFeatureCompleter">
Guillaume Nodete692a962009-08-07 09:55:51 +000073 <property name="featuresService" ref="featuresService" />
74 </bean>
75
76 <bean id="removeUrlCompleter" class="org.apache.felix.karaf.features.command.completers.FeatureRepositoryCompleter">
77 <property name="featuresService" ref="featuresService" />
78 </bean>
79
80</blueprint>