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
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 |
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.