exists a default constructor for JnagSessionImpl()

  3 posts   Feedicon  
Replies: 2 - Last Post: July 13, 2010 18:52
by: Vincent Cantin
« Older Topic » Newer Topic
showing 1 - 3 of 3
 
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
 
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.
Replies: 2 - Last Post: July 13, 2010 18:52
by: Vincent Cantin
« Older Topic » Newer Topic
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close