JBoss Community

Re: Extending JBoss Server

created by Rob Stryker in JBoss Tools - View the full discussion

Hi Kamesh:

 

Are you still having an issue with pollers?

 

I could potentially add in an additional extension point, to add your own server-type mapping to specific polling id's.  Currently we have a poller extension point like this:

 

  <serverPoller
        class="org.jboss.ide.eclipse.as.core.server.internal.v7.JBoss7ManagerServicePoller"
        id="org.jboss.ide.eclipse.as.core.server.JBoss7ManagerServicePoller"
        name="JBoss 7 Manager Service"
        serverTypes="org.jboss.ide.eclipse.as.70,org.jboss.ide.eclipse.as.71,org.jboss.ide.eclipse.as.eap.60"
        supportsShutdown="true"
        supportsStartup="true">

</serverPoller>

 

I could perhaps add something like:

<serverPollerMapping   pollerId="org.jboss.ide.eclipse.as.core.server.JBoss7ManagerServicePoller" serverTypes="your.custom.server.type"/>

 

But of course some other changes would need to be made where the pollers vs the server type are being discovered. This is in org.jboss.ide.eclipse.as.core.ExtensionManager in the method named loadPollers.  Might require some work though, but I'm sure it could be done.

 

Let me know if you want to work on a patch for this.

Reply to this message by going to Community

Start a new discussion in JBoss Tools at Community