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 * ComponentVisitor.java 26 * 27 * Created on January 31, 2002, 11:29 AM 28 */ 29 30 package com.sun.enterprise.deployment.util; 31 32 import com.sun.enterprise.deployment.EnvironmentProperty; 33 import com.sun.enterprise.deployment.InjectionCapable; 34 import com.sun.enterprise.deployment.JmsDestinationReferenceDescriptor; 35 import com.sun.enterprise.deployment.MessageDestinationDescriptor; 36 import com.sun.enterprise.deployment.MessageDestinationReferenceDescriptor; 37 import com.sun.enterprise.deployment.ResourceReferenceDescriptor; 38 import com.sun.enterprise.deployment.RoleReference; 39 import com.sun.enterprise.deployment.ServiceReferenceDescriptor; 40 import com.sun.enterprise.deployment.types.EjbReference; 41 import com.sun.enterprise.deployment.types.MessageDestinationReferencer; 42 43 /** 44 * This class defines the protocol for visiting J2EE Component DOL 45 * related classes 46 * 47 * @author Jerome Dochez 48 * @version 49 */ 50 public interface ComponentVisitor extends DescriptorVisitor { 51 52 /** 53 * visits all entries within the component environment for which 54 * isInjectable() == true 55 * @param the InjectionCapable environment dependency 56 */ 57 public void accept(InjectionCapable injectable); 58 59 60 /** 61 * visits an ejb reference for the last J2EE component visited 62 * @param the ejb reference 63 */ 64 public void accept(EjbReference ejbRef); 65 66 /** 67 * visits a role reference from the last J2EE component visited 68 * @param role reference 69 */ 70 public void accept(RoleReference roleRef); 71 72 /** 73 * visits an environment property for the last J2EE component visited 74 * @param the environment property 75 */ 76 public void accept(EnvironmentProperty envEntry); 77 78 /** 79 * visits an resource reference for the last J2EE component visited 80 * @param the resource reference 81 */ 82 public void accept(ResourceReferenceDescriptor resRef); 83 84 /** 85 * visits an jms destination reference for the last J2EE component visited 86 * @param the jms destination reference 87 */ 88 public void accept(JmsDestinationReferenceDescriptor jmsDestRef); 89 90 /** 91 * visits an message destination reference for the last J2EE component visited 92 * @param the message destination reference 93 */ 94 public void accept(MessageDestinationReferenceDescriptor msgDestRef); 95 96 /** 97 * visits an message destination for the last J2EE component visited 98 * @param the message destination 99 */ 100 public void accept(MessageDestinationDescriptor msgDest); 101 102 /** 103 * visits a message destination referencer for the last J2EE component 104 * visited. 105 */ 106 public void accept(MessageDestinationReferencer msgDestReferencer); 107 108 /** 109 * visits a service reference for the last J2EE component visited. 110 */ 111 public void accept(ServiceReferenceDescriptor serviceRef); 112 } 113 114