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 | <ext:property-placeholder placeholder-prefix="$(" placeholder-suffix=")"/> |
| 24 | |
| 25 | <ext:property-placeholder placeholder-prefix="$[" placeholder-suffix="]" ignore-missing-locations="true"> |
| 26 | <ext:default-properties> |
| 27 | <ext:property name="featuresRepositories" value=""/> |
| 28 | <ext:property name="featuresBoot" value=""/> |
| 29 | </ext:default-properties> |
| 30 | <ext:location>file:$(karaf.home)/etc/org.apache.felix.karaf.features.cfg</ext:location> |
| 31 | </ext:property-placeholder> |
| 32 | |
| 33 | <bean id="featuresService" class="org.apache.felix.karaf.features.internal.FeaturesServiceImpl" init-method="start" destroy-method="stop"> |
| 34 | <property name="urls" value="$[featuresRepositories]" /> |
| 35 | <property name="boot" value="$[featuresBoot]" /> |
| 36 | <property name="configAdmin" ref="configAdmin" /> |
| 37 | <property name="preferences" ref="preferences" /> |
| 38 | <property name="bundleContext" ref="blueprintBundleContext" /> |
| 39 | </bean> |
| 40 | |
| 41 | <reference-list id="featuresListeners" interface="org.apache.felix.karaf.features.FeaturesListener" availability="optional"> |
| 42 | <reference-listener ref="featuresService" |
| 43 | bind-method="registerListener" |
| 44 | unbind-method="unregisterListener" /> |
| 45 | </reference-list> |
| 46 | |
| 47 | <reference id="configAdmin" interface="org.osgi.service.cm.ConfigurationAdmin" /> |
| 48 | |
| 49 | <reference id="preferences" interface="org.osgi.service.prefs.PreferencesService" availability="optional"/> |
| 50 | |
| 51 | <service ref="featuresService" interface="org.apache.felix.karaf.features.FeaturesService" /> |
| 52 | |
| 53 | </blueprint> |