| java.lang.Object org.apache.catalina.util.ExtensionValidator
ExtensionValidator | final public class ExtensionValidator (Code) | | 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.
author: Greg Murray author: Justyna Horwat version: $Revision: 1.12 $ $Date: 2004/04/16 11:01:11 $ |
Method Summary | |
public static void | addSystemResource(File jarFile) Checks to see if the given system JAR file contains a MANIFEST, and adds
it to the container's manifest resources. | public static synchronized boolean | validateApplication(DirContext dirContext, StandardContext context) Runtime validation of a Web Applicaiton.
This method uses JNDI to look up the resources located under a
DirContext . |
addSystemResource | public static void addSystemResource(File jarFile) throws IOException(Code) | | Checks to see if the given system JAR file contains a MANIFEST, and adds
it to the container's manifest resources.
Parameters: jarFile - The system JAR whose manifest to add |
validateApplication | public static synchronized boolean validateApplication(DirContext dirContext, StandardContext context) throws IOException(Code) | | Runtime validation of a Web Applicaiton.
This method uses JNDI to look up the resources located under a
DirContext . 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 an ArrayList of
ManifestResorce objects. These objects are then passed
to the validateManifestResources method for validation.
Parameters: dirContext - The JNDI root of the Web Application Parameters: context - The context from which the Logger and path to theapplication true if all required extensions satisfied |
|
|