- This topic has 3 replies, 2 voices, and was last updated 21 years, 3 months ago by Scott Anderson.
-
AuthorPosts
-
Ronald van KuijkMemberHi,
Isn’t it possible to make the j2ee wizzards more intelligent by giving them knowledge which app-servers are ‘enabled’ and add the right xdoclet config in advance? Including e.g. version numbers on the specific jboss version attribute? Especially new customers would be able to get a quicker start.
Ronald
Scott AndersonParticipantRonald,
That’s an interesting enhancement idea. Of course, it’s still dependent on the user adding the appropriate application server-specific doclet(s) to their projects. And, it also assumes that the users configured their servers fully before running the wizards. Unfortunately, the way the wizard template system works, the files are basically static, but minor substitutions are performed on them when the final class is generated. The flexibility to do what you’re suggesting would require a rather large enhancement.
However, you can add your own templates to the system and extend them with the XDoclet tags if you’d like to create your own custom templates, based on the provided versions. This might worthwhile if you find yourself using the wizards a lot and then spending substantial time changing the generated content to suite your needs. Our wizards are a mildly enhanced version of the Aston wizards and while we don’t provide the instructions on adding your own templates as part of the Help system, the documenation is provided in <MyEclipseInstallDir>/eclipse/plugins/com.genuitec.eclipse.wizards_<version>/docs. However, please be very careful if you choose to go down this path. 🙂
–Scott
MyEclipse Support
Ronald van KuijkMemberScott,
That’s an interesting enhancement idea. Of course, it’s still dependent on the user adding the appropriate application server-specific doclet(s) to their projects. And, it also assumes that the users configured their servers fully before running the wizards.
Hmm.. I just hoped e.g. the ejb wizard could
– add the default ejbdoclet
– detect a configured server
– add the right server specific xdoclet (and maybe setting some properties on e.g. the version)Unfortunately, the way the wizard template system works, the files are basically static, but minor substitutions are performed on them when the final class is generated.
It’s not so much generating the default classes with xdoclet tags, but a preconfigured xdoclet-build.xml file
The flexibility to do what you’re suggesting would require a rather large enhancement.
Ok… to bad but not the end of the world 🙂
However, you can add your own templates to the system and extend them with the XDoclet tags if you’d like to create your own custom templates, based on the provided versions……<cut/>……… However, please be very careful if you choose to go down this path. 🙂
I’ll definately give it a try. We have some requirements for ejb’s (like extending a baseclass we have) that an extended template doesn’t provided a greater development speed, but a greater compliancy with our requirements (which we check afterwards with checkstyle anyway)
Ronald
Scott AndersonParticipantRonald,
I’ll definately give it a try. We have some requirements for ejb’s (like extending a baseclass we have) that an extended template doesn’t provided a greater development speed, but a greater compliancy with our requirements (which we check afterwards with checkstyle anyway)
If you need to extend your own base classes, and then you check for this with checkstyle, then creating your own templates is definately the way to go. You’ll see that it really isn’t very hard at all, and it will definately keep you in compliance much easier than remembering to edit them afterward.
–Scott
MyEclipse Support -
AuthorPosts