org.apache.avalon.phoenix.tools.assembler
Class Assembler

java.lang.Object
  |
  +--AbstractLogEnabled
        |
        +--org.apache.avalon.phoenix.tools.assembler.Assembler

public class Assembler
extends AbstractLogEnabled

Assemble a SarMetaData object from a Configuration object. The Configuration object represents the assembly descriptor and is in the format specified for assembly.xml files.

Version:
$Revision: 1.19 $ $Date: 2002/08/18 08:23:34 $
Author:
Peter Donald
See Also:
Serialized Form

Constructor Summary
Assembler()
           
 
Method Summary
 SarMetaData assembleSar(String name, Configuration assembly, File directory, ClassLoader classLoader)
          Create a SarMetaData object based on specified name and assembly configuration.
 void enableLogging(Logger logger)
          Overidden setLogger() method to setup BlockInfoBuilder logger simultaneously.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Assembler

public Assembler()
Method Detail

enableLogging

public void enableLogging(Logger logger)
Overidden setLogger() method to setup BlockInfoBuilder logger simultaneously.

Parameters:
logger - the logger to use

assembleSar

public SarMetaData assembleSar(String name,
                               Configuration assembly,
                               File directory,
                               ClassLoader classLoader)
                        throws AssemblyException
Create a SarMetaData object based on specified name and assembly configuration.

Parameters:
name - the name of Sar
assembly - the assembly configuration object
directory - the directory Sar installed to
classLoader - the ClassLoader from which resources are loaded (such as meta-data).
Returns:
the new SarMetaData
Throws:
AssemblyException - if an error occurs


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.