FileDocCategorySizeDatePackage
AppVerifier.javaAPI DocGlassfish v2 API4029Fri May 04 22:35:58 BST 2007com.sun.enterprise.tools.verifier

AppVerifier

public class AppVerifier extends Object

Fields Summary
static Logger
_logger
Method
verify
Object
verifier
Constructors Summary
public AppVerifier()

    
        
        init();
    
Methods Summary
private voidinit()

        String name = "com.sun.enterprise.tools.verifier.Verifier";
        try {
            Class verifierClass = Class.forName(name);
            verify = verifierClass.getDeclaredMethod("verify",
                    new Class[] {Application.class,
                                 AbstractArchive.class,
                                 List.class,
                                 File.class});
            Constructor constructor = verifierClass.getDeclaredConstructor();
            verifier = constructor.newInstance();
        } catch (ClassNotFoundException e) {
            _logger.log(Level.SEVERE,"verifier.class.notfound",
                    new Object[] {name});
            throw e;
        }
        catch (NoSuchMethodException e) {
            _logger.log(Level.SEVERE,"verifier.method.notfound",e);
            throw e;
        } catch (Exception e) {
            _logger.log(Level.SEVERE,"verifier.intialization.error", e);
            throw e;
        }
    
public voidverify(com.sun.enterprise.deployment.Application application, com.sun.enterprise.deployment.deploy.shared.AbstractArchive abstractArchive, java.util.List classPath, java.io.File jspOutDir)

        Object result = verify.invoke(verifier,
                new Object[] {application, abstractArchive, classPath, jspOutDir});
        if(((Integer)result).intValue() > 0)
            throw new Exception("Some verifier tests Failed.");