Menu Close
12.6.4. サービスのエクスポート例
HelloBoston
OSGi サービスを実装するバンドルを定義する場合、以下の Blueprint 設定を使用してサービスをエクスポートすることができます。
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
<bean id="hello" class="org.fusesource.example.hello.boston.HelloBostonImpl"/>
<service ref="hello" interface="org.fusesource.example.hello.boston.HelloBoston"/>
</blueprint>
HelloBoston インターフェースは
クラスによって実装されることが前提になります(表示されません)。
HelloBoston
Impl