/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2005 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.modules.j2ee.deployment.plugins.api; import java.io.OutputStream; import org.netbeans.modules.j2ee.deployment.common.api.ValidationException; import org.openide.filesystems.FileObject; /** * Verifier service to be implmeneted by Server Integration Plugin. * Instance of this service needs to be declared in plugin module layer.xml. * * @author nn136682 */ public abstract class VerifierSupport { /** * Whether the verifier support this module type; default to supports all types. */ public boolean supportsModuleType(Object moduleType) { return true; } /** * Verify the provided target J2EE module or application, including both * standard J2EE and platform specific deployment info. The provided * service could include invoking its own specific UI displaying of verification * result. In this case, the service could have limited or no output to logger stream. * * @param target The an archive, directory or file to verify. * @param logger Log stream to write verification output to. * @exception ValidationException if the target fails the validation. */ public abstract void verify(FileObject target, OutputStream logger) throws ValidationException; }