Package org.apache.catalina.util
Class ExtensionValidator
- java.lang.Object
-
- org.apache.catalina.util.ExtensionValidator
-
public final class ExtensionValidator extends Object
Ensures that all extension dependies are resolved for a WEB application are met. This class builds a master list of extensions available to an applicaiton and then validates those extensions. See http://java.sun.com/j2se/1.4/docs/guide/extensions/spec.html for a detailed explanation of the extension mechanism in Java.- Version:
- $Revision: 1.3 $ $Date: 2006/03/12 01:27:08 $
- Author:
- Greg Murray, Justyna Horwat
-
-
Constructor Summary
Constructors Constructor Description ExtensionValidator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
validateApplication(DirContext dirContext, StandardContext context)
Runtime validation of a Web Applicaiton.
-
-
-
Method Detail
-
validateApplication
public static boolean validateApplication(DirContext dirContext, StandardContext context) throws IOException
Runtime validation of a Web Applicaiton. This method uses JNDI to look up the resources located under aDirContext
. It locates Web Application MANIFEST.MF file in the /META-INF/ directory of the application and all MANIFEST.MF files in each JAR file located in the WEB-INF/lib directory and creates anArrayList
ofManifestResorce
objects. These objects are then passed to the validateManifestResources method for validation.
- Parameters:
dirContext
- The JNDI root of the Web Applicationcontext
- The context from which the Logger and path to the application- Returns:
- true if all required extensions satisfied
- Throws:
IOException
-
-