Block Service ExportNested Elements
DescriptionDeclaration of the set of services the a block exports. Collectively the service set represent the services that that block provides in its role as a composite component. Sample XMLThe following XML is a sample of a service export declaration within a sample block defintion. <!-- block implementation declaration --> <container name="locator"> <!-- declaration of one or more services and the underling provider --> <services> <service type="tutorial.location.LocationService"> <source>info</source> </service> </services> <classloader> <classpath> <repository> <resource id="avalon-framework:avalon-framework-api" version="4.1.5"/> <resource id="avalon-framework:avalon-framework-impl" version="4.1.5"/> <resource id="merlin-tutorial:locator-api" version="1.0"/> <resource id="merlin-tutorial:locator-impl" version="1.0"/> </repository> </classpath> </classloader> <!-- the service provider component --> <component name="info" class="tutorial.location.LocationComponent"> <configuration> <source>Paris</source> </configuration> </component> </container> |