Modules
: refer to the application configurationServices
: refer to the services configuration for the Services used in the applicationTypes
: refer to the data types configuration for the Services used in the applicationmyAppliType.jar
contains a type declaration:<application name="appli1"> <deployment> <lib url="myAppliType.jar" /> </deployment> </application>Then the full content of the
myAppliType.jar
type will be used in the instance.<application name="appli1"> <deployment> <lib url="myAppliType.jar" /> </deployment> <modules> <module name="theModule"> <interfaces> <push service="service1"/> <subscribe service="service2" /> </interfaces> </module> </modules> </application>
Types: org/da/myappli/types.xmland through the types declared in the parent instance, then they will be compatible.
myAppliType.jar
jar file containing a specific modules definition:Modules: org/da/myappli/applicationType.xmland the following
applicationType.xml
content:<application name="myAppliType"> <modules> <module name="theModule"> <implementation path="org.da.TheModule" > <initEntryPoint method="init" /> <startEntryPoint method="start" /> <defaultReceiveEntryPoint method="receive" /> </implementation> </module> </modules> </application>Then the following
application.xml
declaration will refer to this declaration type:<application name="appli1"> <deployment> <lib url="myAppliType.jar" /> </deployment> <modules> <module name="theModule"> <interfaces> <push service="service1"/> <subscribe service="service2" /> </interfaces> </module> </modules> </application>This declaration will be equivalent to the following application declaration:
<application name="appli1"> <deployment> <lib url="myAppliType.jar" /> </deployment> <modules> <module name="theModule"> <implementation path="org.da.TheModule" > <initEntryPoint method="init" /> <startEntryPoint method="start" /> <defaultReceiveEntryPoint method="receive" /> </implementation> <interfaces> <push service="service1"/> <subscribe service="service2" /> </interfaces> </module> </modules> </application>
Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence