users@jaxb.java.net

Re: how to inject import statement with plugin

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Thu, 5 Jun 2008 16:03:14 +0200

Hi.

> I am writing one JAXB plugin that requires injecting import statement in
> Java class.
> Anybody knows how to inject it?

Just use the class in the code, import statement will be generated
automatically.
Like myClass._implements(codeModel.ref(MyInterface.class)).

Bye.
/lexi