Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

iPOJO is a component model on the top of OSGi™ OSGi? aiming to simplify the development of OSGi™ OSGi? applications. Moreover, iPOJO provide an extensibility mechanism allowing developers to extend the component model.

...

A composite can be represented as a service registry. Moreover, composite can be contained in other composite. The OSGi™ OSGi? service registry is the root composite.

...

Code Block
<composite name="HelloComposition" factory="Hello" architecture="true">
                <import specification="org.apache.felix.ipojo.composition.ex1.person.Person"  aggregate="true"/>
                <export specification="org.apache.felix.ipojo.composition.ex1.say.SayService"/>
                <service specification="org.apache.felix.ipojo.composition.ex1.hello.Hello"/>
                <service specification="org.apache.felix.ipojo.composition.ex1.say.SayService"/>
                <service specification="org.apache.felix.ipojo.composition.ex1.directory.Directory"/>
</composite>

...

Code Block
<import specification="...Hello" optional="true" aggregate="true" filter="(language="en)"/>

Service Export

The composite can export services from the composite to the parent composite. Each export is described by an export element in the composite description. An export needs to specify targeted specification. Moreover, an export can be:

...