Module type with new deployment descriptors

I'd like to create a new module type that is exactly like the normal web module with some aditional deployment descriptors regardless of the selected server.

What i did was:

- Create a class that extends ModuleType and in the createWizardSteps i return "ModuleType.WEB.createWizardSteps(...)

- Create a new module builder class that extends WebModuleBuilder. Here i can control the creation process by overriding the setupRootModel and coding after call to "super.setupRootModel(..)".

- Register a new AppServerIntegration class that returns the new deployment descriptors.



Everything works fine except for the fact that the new deployment descriptor don't show up in the module wizard step for this. It just shows the default descriptors.

Any ideas ?

6 comments

Probably, module does not have your app server integration selected.

OT:IMHO this is not great idea to create new module type just to add some library support.

0

This is not the only thing it does, but for this discussion that's the only thing that matters.

I'm not sure what you mean by selecting the app server integration. I was under the impression that all i needed to do was register the app server integration and make sure that it's getSupportedModuleTypes method returns my module type. Obviously this isn't working, so can you please explain a little better how i could achieve this ?

0

When creating Web Module there is a step to select 'Application Server',
if some server is selected, then corresponding application server
integration is queried for additional j2ee deployment descriptors, they
are shown on next step along with predefined ones.

Hugo Palma wrote:

This is not the only thing it does, but for this discussion that's the only thing that matters.

I'm not sure what you mean by selecting the app server integration. I was under the impression that all i needed to do was register the app server integration and make sure that it's getSupportedModuleTypes method returns my module type. Obviously this isn't working, so can you please explain a little better how i could achieve this ?



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

That's just it, i said in my first post that i wanted to add the descriptors regardless of the select app server. I don't want to create a new app server, i want to create a new module type that supports all the available app servers for a web module and for every app server i want some additional descriptors.

0

Do you understand the problem ? Maybe this isn't possible with the current API.

0

It is not possible via Open API since it suites application server
integration.

Hugo Palma wrote:

Do you understand the problem ? Maybe this isn't possible with the current API.


--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.