EJB Generator

org.eclipse.jst.j2ee.ejb.annotation.model.ejbGenerator

This extension point is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

This extension permits definitions for new types of EJB generators. An example of such a generator is XDoclet. There can be other types of generators that can be associated with EJB wizards. Currently this is not selectabled via the UI.

<!ELEMENT extension (ejbGenerator , provider)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT ejbGenerator EMPTY>

<!ATTLIST ejbGenerator

name  CDATA #IMPLIED

class CDATA #REQUIRED>

Using this extension point an EJB generator can generate annotated Java from EMF models. This extension point is invoked from the EJB wizards.  The provider and generator are linked by the "id". i.e. They should both have the same id (e.g. XDoclet). There can be many provider-generator sets.



<!ELEMENT provider EMPTY>

<!ATTLIST provider

name  CDATA #REQUIRED

class CDATA #REQUIRED>

Using this extension point clients can define an annotation generator. (i.e. appear in wizards that generate EJBs and Servlets to generate annotated Java code from a model.) The processor can be selective about the types annotation it generates (servlet/EJB/WebService), and it should be return whether is ready to generate code or not (isValid).  Typically the generator may need an installation step.  isValid is used to confirm whether this took place or not.  The name may appear as a user selectable option in wizards.



   

<extension point=

"org.eclipse.jst.j2ee.ejb.annotation.model.ejbGenerator"

>

<provider name=

"XDoclet"

class=

"org.eclipse.jst.j2ee.ejb.annotations.internal.xdoclet.provider.XDocletAnnotationProvider"

/>

<ejbGenerator name=

"XDoclet"

class=

"org.eclipse.jst.j2ee.ejb.annotations.internal.xdoclet.provider.XDocletAnnotationProvider"

/>

</extension>

The ejb generator class must implement the org.eclipse.jst.j2ee.ejb.annotation.internal.provider.IEJBGenerator.

org.eclipse.jst.j2ee.ejb.annotations.internal.xdoclet.provider.XDocletAnnotationProvider provides an implementation for XDoclet.