1 23 package com.sun.enterprise.tools.verifier.tests.ejb.elements; 24 25 import com.sun.enterprise.tools.verifier.tests.ejb.EjbCheck; 26 import com.sun.enterprise.tools.verifier.tests.ComponentNameConstructor; 27 import com.sun.enterprise.tools.verifier.Result; 28 import com.sun.enterprise.deployment.EjbDescriptor; 29 import com.sun.enterprise.deployment.MethodDescriptor; 30 import com.sun.enterprise.deployment.EjbSessionDescriptor; 31 import com.sun.enterprise.deployment.EjbEntityDescriptor; 32 33 import java.util.Set ; 34 35 41 public class ExcludeListMethodsExist extends MethodsExist implements EjbCheck { 42 43 51 public Result check(EjbDescriptor descriptor) { 52 53 result = getInitializedResult(); 54 compName = getVerifierContext().getComponentNameConstructor(); 55 56 if ((descriptor instanceof EjbSessionDescriptor) || 57 (descriptor instanceof EjbEntityDescriptor)) { 58 Set <MethodDescriptor> permissionedMethods = descriptor.getExcludedMethodDescriptors(); 59 if (permissionedMethods!=null && permissionedMethods.size() >0) { 60 61 for (MethodDescriptor methodDescriptor : permissionedMethods) 62 checkMethodStyles(methodDescriptor, descriptor); 63 } 64 } 65 66 if(result.getStatus() != Result.FAILED) { 67 addGoodDetails(result, compName); 68 result.passed(smh.getLocalString 69 (getClass().getName() + ".passed", 70 "Valid exclude list method(s) found.")); 71 } 72 return result; 73 } 74 } 75 76 | Popular Tags |