-
Notifications
You must be signed in to change notification settings - Fork 8
Frascati sca composite files
JGuillemotte edited this page Oct 25, 2012
·
5 revisions
To use a composite in an implementation.composite tag, there are several rules to respect, here is an code sample :
- Main composite
<sca:component name="httpProxyService">
<sca:reference name="handlerManager">
<sca:interface.java interface="org.easysoa.proxy.core.api.exchangehandler.HandlerManager" />
</sca:reference>
...
</sca:component>
<sca:wire source="httpProxyService/handlerManager" target="handlerManagerServBaseComp/handlerManagerComponentService"/>
<sca:component name="handlerManagerServBaseComp">
<sca:service name="handlerManagerComponentService">
<sca:interface.java interface="org.easysoa.proxy.core.api.exchangehandler.HandlerManager" />
</sca:service>
<sca:implementation.composite name="handlerManagerBase.composite"/>
</sca:component>
- Included composite
<sca:service name="handlerManagerComponentService" promote="handlerManagerComponent/handlerManagerServiceBase">
<sca:interface.java interface="org.easysoa.proxy.core.api.exchangehandler.HandlerManager" />
</sca:service>
Rules :
In the main composite :
- the implementation.composite tag must be used inside a service.
- the service from the implemented composite must be wired if used with a reference tag.
In the included composite :
- the services designed to be used with a tag implementation.composite must be promoted to be visible by the main composite.