CVS: jcontainer/loom/engine/src/java/org/jcontainer/loom/components/assembler Assembler.java,1.15,1.16

Peter Donald <pdonald-yCVjj/[email protected]> Sat, 29 Nov 2003 07:44:49 -0600
Newsgroups gmane.comp.java.jcontainer.cvs
Message-ID <[email protected]>
Update of /cvsroot/jcontainer/jcontainer/loom/engine/src/java/org/jcontainer/loom/components/assembler
In directory hogshead.codehaus.org:/tmp/cvs-serv31016/loom/engine/src/java/org/jcontainer/loom/components/assembler

Modified Files:
	Assembler.java 
Log Message:
Remove email addie

Index: Assembler.java
===================================================================
RCS file: /cvsroot/jcontainer/jcontainer/loom/engine/src/java/org/jcontainer/loom/components/assembler/Assembler.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- Assembler.java	10 Nov 2003 02:15:11 -0000	1.15
+++ Assembler.java	29 Nov 2003 13:44:15 -0000	1.16
@@ -101,11 +101,11 @@
 import org.realityforge.salt.i18n.Resources;
 
 /**
- * Assemble a {@link PartitionTemplate} object from a Configuration
- * object. The Configuration object represents the assembly descriptor
- * and is in the format specified for <tt>assembly.xml</tt> files.
+ * Assemble a {@link PartitionTemplate} object from a Configuration object. The
+ * Configuration object represents the assembly descriptor and is in the format
+ * specified for <tt>assembly.xml</tt> files.
  *
- * @author <a href="mailto:peter at realityforge.org">Peter Donald</a>
+ * @author Peter Donald
  * @version $Revision$ $Date$
  */
 public class Assembler
@@ -115,12 +115,11 @@
         ResourceManager.getPackageResources( Assembler.class );
 
     /**
-     * Create a {@link PartitionTemplate} object based on specified
-     * name and assembly configuration. This implementation takes two
-     * parameters. {@link ContainerConstants#ASSEMBLY_NAME} specifies
-     * the name of the assembly and
-     * {@link ContainerConstants#ASSEMBLY_DESCRIPTOR} specifies the configuration
-     * tree to use when assembling Partition.
+     * Create a {@link PartitionTemplate} object based on specified name and
+     * assembly configuration. This implementation takes two parameters. {@link
+     * ContainerConstants#ASSEMBLY_NAME} specifies the name of the assembly and
+     * {@link ContainerConstants#ASSEMBLY_DESCRIPTOR} specifies the
+     * configuration tree to use when assembling Partition.
      *
      * @param parameters the parameters for constructing assembly
      * @return the new PartitionTemplate
@@ -132,15 +131,17 @@
         final String name =
             (String)parameters.get( ContainerConstants.ASSEMBLY_NAME );
         final Configuration assembly =
-            (Configuration)parameters.get( ContainerConstants.ASSEMBLY_DESCRIPTOR );
+            (Configuration)parameters.get(
+                ContainerConstants.ASSEMBLY_DESCRIPTOR );
         final Configuration config =
-            (Configuration)parameters.get( ContainerConstants.CONFIG_DESCRIPTOR );
+            (Configuration)parameters.get(
+                ContainerConstants.CONFIG_DESCRIPTOR );
         return assembleSar( name, config, assembly );
     }
 
     /**
-     * Create a {@link PartitionTemplate} object based on specified
-     * name and assembly configuration.
+     * Create a {@link PartitionTemplate} object based on specified name and
+     * assembly configuration.
      *
      * @param name the name of Sar
      * @param assembly the assembly configuration object
@@ -156,12 +157,15 @@
         final ComponentTemplate[] blocks = buildBlocks( blockConfig, config );
         final PartitionTemplate blockPartition =
             new PartitionTemplate( ContainerConstants.BLOCK_PARTITION,
-                                   new String[]{ContainerConstants.LISTENER_PARTITION},
+                                   new String[]{
+                                       ContainerConstants.LISTENER_PARTITION},
                                    PartitionTemplate.EMPTY_SET,
                                    blocks );
 
-        final Configuration[] listenerConfig = assembly.getChildren( "listener" );
-        final ComponentTemplate[] listeners = buildBlockListeners( listenerConfig, config );
+        final Configuration[] listenerConfig = assembly.getChildren(
+            "listener" );
+        final ComponentTemplate[] listeners = buildBlockListeners(
+            listenerConfig, config );
         final PartitionTemplate listenerPartition =
             new PartitionTemplate( ContainerConstants.LISTENER_PARTITION,
                                    new String[ 0 ],
@@ -178,8 +182,8 @@
     }
 
     /**
-     * Create an array of {@link ComponentTemplate} objects to represent
-     * the &lt;block .../&gt; sections in <tt>assembly.xml</tt>.
+     * Create an array of {@link ComponentTemplate} objects to represent the
+     * &lt;block .../&gt; sections in <tt>assembly.xml</tt>.
      *
      * @param blocks the list of Configuration objects for blocks
      * @return the BlockMetaData array
@@ -195,12 +199,13 @@
             blockSet.add( buildBlock( blocks[ i ], config ) );
         }
 
-        return (ComponentTemplate[])blockSet.toArray( new ComponentTemplate[ blockSet.size() ] );
+        return (ComponentTemplate[])blockSet.toArray(
+            new ComponentTemplate[ blockSet.size() ] );
     }
 
     /**
-     * Create a single {@link ComponentTemplate} object to represent
-     * specified &lt;block .../&gt; section.
+     * Create a single {@link ComponentTemplate} object to represent specified
+     * &lt;block .../&gt; section.
      *
      * @param block the Configuration object for block
      * @return the BlockMetaData object
@@ -220,7 +225,8 @@
                 proxy.getAttributeAsBoolean( "disable", false );
 
             final Configuration[] provides = block.getChildren( "provide" );
-            final DependencyDirective[] dependencys = buildDependencies( provides );
+            final DependencyDirective[] dependencys = buildDependencies(
+                provides );
 
             final Configuration configuration = config.getChild( name );
 
@@ -232,27 +238,32 @@
         catch( final ConfigurationException ce )
         {
             final String message =
-                REZ.format( "block-entry-malformed", block.getLocation(), ce.getMessage() );
+                REZ.format( "block-entry-malformed",
+                            block.getLocation(),
+                            ce.getMessage() );
             throw new LoomException( message, ce );
         }
     }
 
     /**
-     * Create an array of {@link ComponentTemplate} objects to represent
-     * the &lt;listener .../&gt; sections in <tt>assembly.xml</tt>.
+     * Create an array of {@link ComponentTemplate} objects to represent the
+     * &lt;listener .../&gt; sections in <tt>assembly.xml</tt>.
      *
-     * @param listenerConfigs the list of Configuration objects for listenerConfigs
+     * @param listenerConfigs the list of Configuration objects for
+     * listenerConfigs
      * @return the array of listeners
      * @throws LoomException if an error occurs
      */
-    private ComponentTemplate[] buildBlockListeners( final Configuration[] listenerConfigs,
-                                                     final Configuration config )
+    private ComponentTemplate[] buildBlockListeners(
+        final Configuration[] listenerConfigs,
+        final Configuration config )
         throws LoomException
     {
         final List listeners = new ArrayList();
         for( int i = 0; i < listenerConfigs.length; i++ )
         {
-            final ComponentTemplate listener = buildBlockListener( listenerConfigs[ i ], config );
+            final ComponentTemplate listener = buildBlockListener(
+                listenerConfigs[ i ], config );
             listeners.add( listener );
         }
         return (ComponentTemplate[])listeners.
@@ -260,15 +271,15 @@
     }
 
     /**
-     * Create a {@link ComponentTemplate} object to represent
-     * the specified &lt;listener .../&gt; section.
+     * Create a {@link ComponentTemplate} object to represent the specified
+     * &lt;listener .../&gt; section.
      *
      * @param listener the Configuration object for listener
      * @return the BlockListenerMetaData object
      * @throws LoomException if an error occurs
      */
     ComponentTemplate buildBlockListener( final Configuration listener,
-                                                  final Configuration config )
+                                          final Configuration config )
         throws LoomException
     {
         try
@@ -293,7 +304,8 @@
     }
 
     /**
-     * Helper method to build an array of DependencyMetaDatas from input config data.
+     * Helper method to build an array of DependencyMetaDatas from input config
+     * data.
      *
      * @param provides the set of provides elements for block
      * @return the created DependencyDirective array
@@ -305,11 +317,13 @@
         final ArrayList dependencies = new ArrayList();
         for( int j = 0; j < provides.length; j++ )
         {
-            final DependencyDirective directive = buildDependency( provides[ j ] );
+            final DependencyDirective directive = buildDependency(
+                provides[ j ] );
             dependencies.add( directive );
         }
 
-        return (DependencyDirective[])dependencies.toArray( new DependencyDirective[ dependencies.size() ] );
+        return (DependencyDirective[])dependencies.toArray(
+            new DependencyDirective[ dependencies.size() ] );
     }
 
     /**