1 23 24 29 30 package com.sun.enterprise.deployment.node.ejb; 31 32 import com.sun.enterprise.deployment.node.XMLElement; 33 import com.sun.enterprise.deployment.node.DeploymentDescriptorNode; 34 import com.sun.enterprise.deployment.node.MethodNode; 35 import com.sun.enterprise.deployment.node.DescriptorFactory; 36 37 import com.sun.enterprise.deployment.Descriptor; 38 import com.sun.enterprise.deployment.MethodDescriptor; 39 import com.sun.enterprise.deployment.MethodPermissionDescriptor; 40 import com.sun.enterprise.deployment.MethodPermission; 41 import com.sun.enterprise.deployment.xml.EjbTagNames; 42 43 49 public class ExcludeListNode extends DeploymentDescriptorNode { 50 51 private MethodPermissionDescriptor descriptor; 52 53 54 public ExcludeListNode() { 55 registerElementHandler(new XMLElement(EjbTagNames.METHOD), 56 MethodNode.class, "addMethod"); 57 } 58 59 60 64 public Object getDescriptor() { 65 if (descriptor==null) { 66 descriptor = (MethodPermissionDescriptor) DescriptorFactory.getDescriptor(getXMLPath()); 67 descriptor.addMethodPermission(MethodPermission.getExcludedMethodPermission()); 68 } 69 return descriptor; 70 } 71 } 72 | Popular Tags |