users@jaxb.java.net

Re: Plugin for EJB 3.0 annotations

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Thu, 11 Aug 2005 18:34:53 +0200

Hi.

> To accomplish my EJB 3.0 CMP plugin I will need to be able to insert a
> line of text prior to the class declaration and prior to each
> setter/getter method. I assume this can be done? Is there a document
> that shows how all the Plugin related classes work?

You'll have to use the code model classes to augment the source code.

Ex.:

classOutline.implClass.annotate(Entity.class).param("access",
AccessType.PROPERTY);

Bye.
/lexi