1 /* 2 * The contents of this file are subject to the terms 3 * of the Common Development and Distribution License 4 * (the License). You may not use this file except in 5 * compliance with the License. 6 * 7 * You can obtain a copy of the license at 8 * https://glassfish.dev.java.net/public/CDDLv1.0.html or 9 * glassfish/bootstrap/legal/CDDLv1.0.txt. 10 * See the License for the specific language governing 11 * permissions and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL 14 * Header Notice in each file and include the License file 15 * at glassfish/bootstrap/legal/CDDLv1.0.txt. 16 * If applicable, add the following below the CDDL Header, 17 * with the fields enclosed by brackets [] replaced by 18 * you own identifying information: 19 * "Portions Copyrighted [year] [name of copyright owner]" 20 * 21 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 22 */ 23 24 /* 25 * EjbVisitor.java 26 * 27 * Created on January 31, 2002, 11:28 AM 28 */ 29 30 package com.sun.enterprise.deployment.util; 31 32 import java.util.Iterator; 33 import com.sun.enterprise.deployment.EjbDescriptor; 34 import com.sun.enterprise.deployment.MethodPermission; 35 import com.sun.enterprise.deployment.MethodDescriptor; 36 import com.sun.enterprise.deployment.ContainerTransaction; 37 import com.sun.enterprise.deployment.FieldDescriptor; 38 import com.sun.enterprise.deployment.QueryDescriptor; 39 40 /** 41 * This class is responsible for visiting DOL ejb related descritpors 42 * 43 * @author Jerome Dochez 44 * @version 45 */ 46 public interface EjbVisitor extends ComponentVisitor { 47 48 /** 49 * visits an ejb descriptor 50 * @param ejb descriptor 51 */ 52 public void accept(EjbDescriptor ejb); 53 54 /** 55 * visits a method permission and permitted methods for the 56 * last J2ee component visited 57 * @param method permission 58 * @param the methods associated with the above permission 59 */ 60 public void accept(MethodPermission pm, Iterator methods); 61 62 /** 63 * visits a method transaction 64 * @param ejb descritptor this method applies to 65 * @param method descriptor the method 66 * @param container transaction 67 */ 68 public void accept(MethodDescriptor method, ContainerTransaction ct); 69 70 /** 71 * visits a CMP field definition (for CMP entity beans) 72 * @param field descriptor for the CMP field 73 */ 74 public void accept(FieldDescriptor fd); 75 76 /** 77 * visits a query method 78 * @param method descriptor for the method 79 * @param query descriptor 80 */ 81 public void accept(MethodDescriptor method, QueryDescriptor qd); 82 83 } 84 85