/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.modules.j2ee.api.ejbjar; import org.netbeans.api.project.ant.AntArtifact; import org.netbeans.jmi.javamodel.Feature; import org.netbeans.jmi.javamodel.JavaClass; import org.netbeans.modules.j2ee.dd.api.common.EjbLocalRef; import org.netbeans.modules.j2ee.dd.api.common.EjbRef; /** * * @author Martin Adamek */ public interface EjbReferenceSimplified { AntArtifact getClientJarTarget(); EjbRef createRef(); EjbLocalRef createLocalRef(); boolean supportsLocalInvocation(); boolean supportsRemoteInvocation(); void populateReference(EjbRef ref); void populateReference(EjbLocalRef ref); Feature generateServiceLocatorLookup(EjbRef ref, JavaClass target, String serviceLocatorName, boolean throwExceptions); Feature generateServiceLocatorLookup(EjbLocalRef ref, JavaClass target, String serviceLocatorName, boolean throwExceptions); Feature generateReferenceCode(EjbRef ref, JavaClass target, boolean throwExceptions); Feature generateReferenceCode(EjbLocalRef ref, JavaClass target, boolean throwExceptions); }