org.apache.avalon.phoenix.tools.verifier
Class SarVerifier

java.lang.Object
  |
  +--AbstractLogEnabled
        |
        +--org.apache.avalon.phoenix.tools.verifier.SarVerifier

public class SarVerifier
extends AbstractLogEnabled

This Class verifies that Sars are valid. It performs a number of checks to make sure that the Sar represents a valid application and excluding runtime errors will start up validly. Some of the checks it performs include;

Version:
$Revision: 1.27 $ $Date: 2002/08/26 10:39:56 $
Author:
Peter Donald
See Also:
Serialized Form

Constructor Summary
SarVerifier()
           
 
Method Summary
 void verifySar(SarMetaData sar, ClassLoader classLoader)
          Verify the specified SarMetaData object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SarVerifier

public SarVerifier()
Method Detail

verifySar

public void verifySar(SarMetaData sar,
                      ClassLoader classLoader)
               throws VerifyException
Verify the specified SarMetaData object. The rules used to verify SarMetaData are specified in the Class javadocs.

Parameters:
sar - the SarMetaDat object
classLoader - the ClassLoader used to load types. This is used to verify that specified Class objects exist and implement the correct interfaces.
Throws:
VerifyException - if an error occurs


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.