? ejbapi/src/org/netbeans/modules/j2ee/api/ejbjar/EjbReferenceSimplified.java Index: ejbapi/arch/apichanges.xml =================================================================== RCS file: /cvs/j2ee/ejbapi/arch/apichanges.xml,v retrieving revision 1.1 diff -u -r1.1 apichanges.xml --- ejbapi/arch/apichanges.xml 24 Aug 2005 02:59:43 -0000 1.1 +++ ejbapi/arch/apichanges.xml 28 Mar 2006 07:22:50 -0000 @@ -74,6 +74,26 @@ + + + Added interface for creating EJB references also in Java EE 5 style + + + + + +

+ In Java EE 5 there is possibility to have reference to EJB in code as annotated field or + combination of field and annotated setter. This was not possible with previous EjbReference + interface, which was allowing only to create one single method to access reference to EJB. Also + references to service locators are now part of API. Old EjbReference interface is now deprecated + because it doesn't fully support features of Java EE 5. +

+
+ + +
+ Added API method to get all ejb modules per project and corresponding SPI interface Index: ejbapi/arch/arch-j2ee-ejbprojectapi.xml =================================================================== RCS file: /cvs/j2ee/ejbapi/arch/arch-j2ee-ejbprojectapi.xml,v retrieving revision 1.8.2.1.2.1 diff -u -r1.8.2.1.2.1 arch-j2ee-ejbprojectapi.xml --- ejbapi/arch/arch-j2ee-ejbprojectapi.xml 9 Feb 2006 13:13:09 -0000 1.8.2.1.2.1 +++ ejbapi/arch/arch-j2ee-ejbprojectapi.xml 28 Mar 2006 07:22:50 -0000 @@ -106,9 +106,12 @@ EJB module or web module can have reference to EJBs. This API allows creating these references and adding them to module. -Adding an EJB reference includes both adding an entry into deployment descriptor and +Adding an EJB reference from Java EE 5 version is just adding annotated field or combination +of field and annotated setter method. For non-managed classes JNDI lookup is still the only +way to get reference to EJB. For backward compatibility it also +includes both adding an entry into deployment descriptor and adding a concenience method that does the JNDI lookup of the EJB. -An EJB module defines EjbReference instances for its EJBs. +An EJB module defines EjbReferenceSimplified instances for its EJBs. EjbReferenceContainer is implemented by projects that can consume EJB references. Index: ejbapi/nbproject/project.properties =================================================================== RCS file: /cvs/j2ee/ejbapi/nbproject/project.properties,v retrieving revision 1.5.22.1 diff -u -r1.5.22.1 project.properties --- ejbapi/nbproject/project.properties 26 Mar 2006 12:19:56 -0000 1.5.22.1 +++ ejbapi/nbproject/project.properties 28 Mar 2006 07:22:50 -0000 @@ -11,6 +11,7 @@ is.autoload=true +javac.source=1.5 javadoc.title=EjbJar API javadoc.overview=${basedir}/arch/overview.html javadoc.arch=${basedir}/arch/arch-j2ee-ejbprojectapi.xml Index: ejbapi/src/org/netbeans/modules/j2ee/api/ejbjar/EjbReference.java =================================================================== RCS file: /cvs/j2ee/ejbapi/src/org/netbeans/modules/j2ee/api/ejbjar/EjbReference.java,v retrieving revision 1.8 diff -u -r1.8 EjbReference.java --- ejbapi/src/org/netbeans/modules/j2ee/api/ejbjar/EjbReference.java 31 May 2005 11:16:40 -0000 1.8 +++ ejbapi/src/org/netbeans/modules/j2ee/api/ejbjar/EjbReference.java 28 Mar 2006 07:22:50 -0000 @@ -18,6 +18,10 @@ import org.netbeans.modules.j2ee.dd.api.common.EjbLocalRef; import org.netbeans.modules.j2ee.dd.api.common.EjbRef; +/** + * @deprecated Replaced by {@link org.netbeans.modules.j2ee.api.ejbjar.EjbReferenceSimplified} + */ +@Deprecated public interface EjbReference { public AntArtifact getClientJarTarget(); public boolean supportsLocalInvocation();