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.20 $ $Date: 2002/09/06 11:20:22 $
- Author:
- Peter Donald
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Assembler
public Assembler()
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 Sarassembly
- the assembly configuration objectdirectory
- the directory Sar installed toclassLoader
- 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.