FileDocCategorySizeDatePackage
InterceptorMethodNotStaticOrFinal.javaAPI DocGlassfish v2 API3085Fri May 04 22:33:34 BST 2007com.sun.enterprise.tools.verifier.tests.ejb.ejb30

InterceptorMethodNotStaticOrFinal

public class InterceptorMethodNotStaticOrFinal extends InterceptorMethodTest
An interceptor method must not be declared as final or static.
author
Vikas Awasthi

Fields Summary
Constructors Summary
Methods Summary
voidtestInterceptorMethods(java.util.Set callbackDescs, java.lang.String callbackMethodName, java.lang.Boolean isBeanMethod)

        ClassLoader cl = getVerifierContext().getClassLoader();
        for (LifecycleCallbackDescriptor callbackDesc : callbackDescs) {
            try {
                Method method = callbackDesc.getLifecycleCallbackMethodObject(cl);
                if(Modifier.isFinal(method.getModifiers()) || 
                        Modifier.isStatic(method.getModifiers())) {
                    logFailure(callbackMethodName, method);
                }
            } catch (Exception e) {}//ignore as it will be caught in other tests
        }