FileDocCategorySizeDatePackage
ListenerClassExists.javaAPI DocGlassfish v2 API2978Fri May 04 22:34:10 BST 2007com.sun.enterprise.tools.verifier.tests.web

ListenerClassExists

public class ListenerClassExists extends ListenerClass implements WebCheck
Listener class exists tests. Verify that the Listener class exists inside the .war file and is loadable.
author
Jerome Dochez
version
1.0

Fields Summary
Constructors Summary
Methods Summary
protected booleanrunIndividualListenerTest(com.sun.enterprise.tools.verifier.Result result, java.lang.Class listenerClass)

Run the verifier test against a declared individual listener class

param
result is used to put the test results in
param
listenerClass is the individual listener class object to test
return
true if the test pass

        if (listenerClass != null) {

	    result.addGoodDetails(smh.getLocalString
		(getClass().getName() + ".passed",
		 "Listener class [ {0} ] resides in the WEB-INF/classes directory.",
		  new Object[] {listenerClass.getName()}));    
            return true;
        } else
            return false;