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;
- Verify names of Sar, Blocks and BlockListeners contain only
letters, digits or the '_' character.
- Verify that the names of the Blocks and BlockListeners are
unique to Sar.
- Verify that the dependendencies specified in assembly.xml
correspond to dependencies specified in BlockInfo files.
- Verify that the inter-block dependendencies specified in
assembly.xml are valid. This essentially means that if
Block A requires Service S from Block B then Block B must
provide Service S.
- Verify that there are no circular dependendencies between
blocks.
- Verify that the Class objects for Blocks support the Block
interface and any specified Services.
- Verify that the Class objects for BlockListeners support the
BlockListener interface.
- Version:
- $Revision: 1.28.2.1 $ $Date: 2002/09/09 11:30:19 $
- 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 |
SarVerifier
public SarVerifier()
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 objectclassLoader
- 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.