com.borland.jbuilder.enterprise.ejb
Class AppServerManager

java.lang.Object
  |
  +--com.borland.jbuilder.enterprise.ejb.AppServerManager

public final class AppServerManager
extends java.lang.Object

All AppServerPropertiesManager members are static, operating on a set of globally defined appServers.


Method Summary
static AppServer getAppServer(Project project)
           
static AppServer getAppServer(java.lang.String fullName)
          Finds an appServer matching the full name (name + ' ' + version) supplied.
static java.util.ArrayList getAppServers()
           
static long getLastModified()
           
static void registerAppServer(AppServer appServer)
          If appServer with the same name doesn't already exist in the list, add this appServer to the list of registered appServers.
static void registerEjbDeployer(EjbDeployer ejbDeployer, java.lang.String appServerName, java.lang.String appServerVersion)
           
static void save()
          Saves the current set of library and appServer definitions to disk.
static void setAppServers(java.util.ArrayList appServers)
           
static void updateLastModified()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

registerAppServer

public static void registerAppServer(AppServer appServer)
If appServer with the same name doesn't already exist in the list, add this appServer to the list of registered appServers. Otherwise, copy info from the existing appServer, and replace it with the one being registered.

registerEjbDeployer

public static void registerEjbDeployer(EjbDeployer ejbDeployer,
                                       java.lang.String appServerName,
                                       java.lang.String appServerVersion)

getAppServers

public static java.util.ArrayList getAppServers()

setAppServers

public static void setAppServers(java.util.ArrayList appServers)

getLastModified

public static long getLastModified()

updateLastModified

public static void updateLastModified()

save

public static void save()
Saves the current set of library and appServer definitions to disk. No actual disk access is performed if no changes have been made since the last save or the initial load.

getAppServer

public static AppServer getAppServer(java.lang.String fullName)

Finds an appServer matching the full name (name + ' ' + version) supplied. If no match is found the first available appServer is returned.

Parameters:
name - The full name of the desired appServer.
Returns:
The best matching appServer instance is returned. This value can be null if no appServers are found.

getAppServer

public static AppServer getAppServer(Project project)
Parameters:
project - The project for which the AppServer is needed.
Returns:
the AppServer for the project.