Pantau
|
Posted: July 13, 2010 16:05 by Pantau
|
|
Hello you all, i would like to use your tool. But I do not know, how I can instantiate a JnagSessionImpl object. How do i have to build an AbstractConfiguration implementation (which i need as a parameter for JnagSessionImpl). Do I have to use "maven" to build a AbstractConfiguration implementation? Or is there any other possibility (I'm not experienced with maven). Thanks a lot Pantau |
exists a default constructor for JnagSessionImpl()
Replies: 2 - Last Post: July 13, 2010 18:52
by: Vincent Cantin
by: Vincent Cantin
« Older Topic
» Newer Topic
showing 1 - 3 of 3
Vincent Cantin
|
Posted: July 13, 2010 18:32 by Vincent Cantin
|
|
Hello Pantau, To instanciate the class JnagSessionImpl, you do need to provide an instance of the type AbstractConfiguration. The type of this instance is normally generated by the Jnag Annotation Processor during the build a your project. You don't have to use Maven to generate it, you can choose to call Jnag's (standard) annotation processor using your own way (bat file, ant, etc ...). I switched to Maven because I didn't like this configuration step: it took me too much time to set it up each time I was creating a new sample. So I programmed a Maven plugin that integrate this compilation step into a Maven build, for the sake of simplicity. If you need to see how to use Jnag's annotation processor, you can take a look at the source code of the Maven plugin or/and the annotation processor itself. I remember that I left a lot of comments inside. |
Vincent Cantin
|
Posted: July 13, 2010 18:52 by Vincent Cantin
|
|
You should be able to find what you need to know in the comments of this file: http://kenai.com/projects/jnag/sources/lib/content/jnag-annotation-processor/src/main/java/com/lemoulinstudio/jnag/apt/JnagAnnotationProcessor.java |
Replies: 2 - Last Post: July 13, 2010 18:52
by: Vincent Cantin
by: Vincent Cantin
« Older Topic
» Newer Topic







