blob: 624b2a7d9d9736fe2fb246caa96bc60960f4702e [file] [log] [blame]
Richard S. Hall2cbaf532006-08-10 13:11:19 +00001<?xml version="1.0" encoding="UTF-8"?>
2<component name="spellcheckscr">
3
4 <!-- xmlns="http://www.osgi.org/xmlns/scr/v1.0.0" -->
5 <!--
6 This metadata file instructs the Apache Felix Service Component
7 Runtime to create one instance of "SpellCheckServiceImpl". It also
8 tells the generic activator that this instance implements the
9 "SpellCheckService" service interface and that it has an
10 aggregate dependency on "DictionaryService" services. Since
11 the service dependency on dictionary services has a lower
12 cardinality of one, the generic activator will create the instance
13 and offer its spell check service only when there is at least
14 one dictionary service available. The service dependency is
15 "dynamic", which means that dictionary service availability
16 will be monitored dynamically at runtime and it also tells the
17 generic activator which methods to call when adding and removing
18 dictionary services.
19 -->
20 <implementation class="org.apache.felix.examples.spellcheckscr.SpellCheckServiceImpl"/>
21
22 <property name="category" value="demo" type="String"/>
23
24 <properties entry="OSGI-INF/component.properties"/>
25
26 <service>
27 <provide interface="org.apache.felix.examples.spellcheckservice.SpellCheckService"/>
28 </service>
29
30 <reference name="DICTONARY"
31 interface="org.apache.felix.examples.dictionaryservice.DictionaryService"
32 filter="(Language=*)"
33 cardinality="1..n"
34 policy="dynamic"
35 bind="addDictionary"
36 unbind="removeDictionary"
37 />
38</component>