Factories and scopes


NOTE: Factories and scopes will be available starting from version 1.2.

<?xml version="1.0" encoding="UTF-8"?>
<bundle>
  <component class="org.simpleclient.impl.ServiceImpl" factory="yes">
    <provides service="org.simpleclient.interfaces.SimpleClientServiceA"/>
    <provides service="org.simpleclient.interfaces.SimpleClientServiceB"/>
    <property name="provider" value="Beanome.org" type="string"/>
    <requires
        service="org.simpleservice.interfaces.SimpleService"
        filter="(version=*)"
        cardinality="1..n"
        policy="static"
        bind-method="setServiceReference"
        unbind-method="unsetServiceReference"
    />
  </component>
</bundle>

Figure 1. Example of a component that results in a factory

This page will soon be updated.


Last revision: 06 February 2004
(c) H. Cervantes and R.S. Hall

Previous : Adding interceptors

Index