final Configuration assembly )
throws LoomException
{
final Configuration[] blockConfig = assembly.getChildren( "block" );
final ComponentTemplate[] blocks = buildBlocks( blockConfig, config );
final PartitionTemplate blockPartition =
new PartitionTemplate( ContainerConstants.BLOCK_PARTITION,
new String[]{
ContainerConstants.LISTENER_PARTITION},
PartitionTemplate.EMPTY_SET,
blocks );
final Configuration[] listenerConfig = assembly.getChildren(
"listener" );
final ComponentTemplate[] listeners = buildBlockListeners(
listenerConfig, config );
final PartitionTemplate listenerPartition =
new PartitionTemplate( ContainerConstants.LISTENER_PARTITION,
new String[ 0 ],
PartitionTemplate.EMPTY_SET,
listeners );
final PartitionTemplate[] partitions =
new PartitionTemplate[]{blockPartition, listenerPartition};
return new PartitionTemplate( name,
new String[ 0 ],
partitions,
ComponentTemplate.EMPTY_SET );
}