()

Introduction

The purpose of the assembly.xml file is to define how the Server Application is assembled from it's component Blocks. This requires naming each block, specifying the implementation class for each block and wiring together blocks. The wiring is done via provides elements. Each provide element maps a block instance to a role of a dependency specified in the BlockInfo file. See below for a sample assembly.xml file.

The assembly.xml can also specify ApplicationListener objects that will be created for application. The listeners need a name and a classname.

In previous versions of Phoenix, configuration data was also stored in the assembly file. This is no longer the case (It is now stored in config.xml).

Sample assembly.xml file

<?xml version="1.0"?>

<assembly>

    <listener name="myListener"
           class="com.biz.cornerstone.listeners.MyListener">
    </listener>

    <block name="myAuthorizer"
           class="com.biz.cornerstone.blocks.MyAuthorizer">
    </block>

    <block name="myBlock"
           class="com.biz.cornerstone.blocks.MyBlock">
      <provide name="myAuthorizer"
               role="com.biz.cornerstone.services.Authorizer"/>
    </block>

</assembly>
()