This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 62130 - Server UI support api changes
Summary: Server UI support api changes
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Sherold Dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-10 18:25 UTC by Sherold Dev
Modified: 2005-09-05 10:01 UTC (History)
5 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
javadoc (334.52 KB, application/x-compressed)
2005-08-10 18:36 UTC, Sherold Dev
Details
updated javadoc (334.67 KB, application/x-compressed)
2005-08-11 14:27 UTC, Sherold Dev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sherold Dev 2005-08-10 18:25:23 UTC
Please review the following changes of the j2eeserver API. These changes are
necessary in order to implement the Server UI changes (see
http://j2eeserver.netbeans.org/j2ee-server-ui-spec-promof.html) and issue 55640.

Impacted interfaces:
org.netbeans.modules.j2ee.deployment.devmodules.api.ServerManager - class added
org.netbeans.modules.j2ee.deployment.plugins.api.UISupport - class added
org.netbeans.modules.j2ee.deployment.plugins.api.StartServer - method added
Comment 1 Sherold Dev 2005-08-10 18:36:03 UTC
Created attachment 23708 [details]
javadoc
Comment 2 Sherold Dev 2005-08-10 18:45:50 UTC
Since the change is trivial and compatible using the API_REVIEW_FAST keyword.
Comment 3 Sherold Dev 2005-08-10 18:52:10 UTC
Pavel, Jarda, Radim can you please be the reviewers?
Comment 4 Pavel Buzek 2005-08-10 20:46:44 UTC
I agree with these additions to j2eeserver api.
Comment 5 _ rkubacki 2005-08-11 09:42:49 UTC
Looks OK to me.

Perhaps an adition about threading for the methods that deals with UI can be added.

I'd guess that supportsStartDebugging should return false by default to be more
defensive but have no strong opinion here.
Comment 6 Jaroslav Tulach 2005-08-11 10:37:26 UTC
UISupport looks ok to me. I have no clue/opinion about the rest as I cannot 
imagine how to use the methods and for what, so I cannot verify if the API is 
the best for potential usecases. Sorry. 
Comment 7 Pavel Buzek 2005-08-11 14:26:46 UTC
Stepane, I understend Jarda's concern about use cases. Radim, Petr and I all
know j2eeserver problems too well :-) but it would be worth describing for Jarda.
Comment 8 Sherold Dev 2005-08-11 14:27:25 UTC
Created attachment 23724 [details]
updated javadoc
Comment 9 Sherold Dev 2005-08-11 14:41:34 UTC
I have updated the javadoc based on Radim's comments. I agree that the
supportsStartDebugging method should return false by default (I will update all
the plugins accordingly).

Here is what the other methods are good for:

ServerManager.showCustomizer() will be used from various places outside the
j2eeserver to access the Server Manager. Some of these places are: new web/j2ee
project wizards, web/j2ee project properties, missing server dialog.

StartServer.supportsStartDebugging() will be used to disable/enable the "Start
in Debug Mode" menu item in the server instance context menu.
Comment 10 Sherold Dev 2005-08-15 18:50:51 UTC
If there are no farther comments or objections, I am going to commit these
changes to trunk.
Comment 11 Sherold Dev 2005-08-16 14:48:14 UTC
F.

Checking in apichanges.xml;
/cvs/j2eeserver/apichanges.xml,v  <--  apichanges.xml
new revision: 1.16; previous revision: 1.15
done
Checking in nbproject/project.xml;
/cvs/j2eeserver/nbproject/project.xml,v  <--  project.xml
new revision: 1.11; previous revision: 1.10
done
Checking in
src/org/netbeans/modules/j2ee/deployment/devmodules/api/ServerManager.java;
/cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/devmodules/api/ServerManager.java,v
 <--  ServerManager.java
new revision: 1.2; previous revision: 1.1
done
Checking in src/org/netbeans/modules/j2ee/deployment/plugins/api/StartServer.java;
/cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/plugins/api/StartServer.java,v
 <--  StartServer.java
new revision: 1.8; previous revision: 1.7
done
Checking in src/org/netbeans/modules/j2ee/deployment/plugins/api/UISupport.java;
/cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/plugins/api/UISupport.java,v
 <--  UISupport.java
new revision: 1.2; previous revision: 1.1
done