diff -r 79437956065f j2eeserver/apichanges.xml --- a/j2eeserver/apichanges.xml Mon Mar 03 13:58:03 2008 +0100 +++ b/j2eeserver/apichanges.xml Mon Mar 03 18:27:33 2008 +0100 @@ -111,6 +111,23 @@ is the proper place. + + + + Provides a way to remove server without need to invoke UI action. + + + + + + +

+ Method provides a way to remove server instance for plugins + which don't use the j2eeserver UI. +

+
+ +
diff -r 79437956065f j2eeserver/nbproject/project.properties --- a/j2eeserver/nbproject/project.properties Mon Mar 03 13:58:03 2008 +0100 +++ b/j2eeserver/nbproject/project.properties Mon Mar 03 18:27:33 2008 +0100 @@ -39,7 +39,7 @@ is.autoload=true javac.source=1.5 -spec.version.base=1.40.0 +spec.version.base=1.41.0 javadoc.overview=${basedir}/api/doc/overview.html javadoc.arch=${basedir}/arch.xml diff -r 79437956065f j2eeserver/src/org/netbeans/modules/j2ee/deployment/plugins/api/InstanceProperties.java --- a/j2eeserver/src/org/netbeans/modules/j2ee/deployment/plugins/api/InstanceProperties.java Mon Mar 03 13:58:03 2008 +0100 +++ b/j2eeserver/src/org/netbeans/modules/j2ee/deployment/plugins/api/InstanceProperties.java Mon Mar 03 18:27:33 2008 +0100 @@ -263,6 +263,18 @@ public abstract class InstanceProperties } /** + * Removes the given server instance from the registry. It won't be available + * anymore. This method does not do any additional actions like stopping + * server, closing output tab and similar. + * + * @param serverInstanceId server instance identifier + * @since 1.41 + */ + public static void removeInstance(String serverInstanceId) { + ServerRegistry.getInstance().removeServerInstance(serverInstanceId); + } + + /** * Returns list of URL strings of all registered instances * @return array of URL strings */