FileDocCategorySizeDatePackage
InstanceFactory.javaAPI DocGlassfish v2 API7128Fri May 04 22:35:00 BST 2007com.sun.enterprise.instance

InstanceFactory

public class InstanceFactory extends Object
A factory to create instance specific objects.

Fields Summary
Constructors Summary
Methods Summary
public static AppclientModulesManagercreateAppclientModulesManager(java.lang.String serverId)

	InstanceEnvironment env = new InstanceEnvironment(serverId);
	return new AppclientModulesManager(env);
    
public static AppclientModulesManagercreateAppclientModulesManager(InstanceEnvironment env)

	return new AppclientModulesManager(env);
    
public static AppsManagercreateAppsManager(java.lang.String serverId)
Returns a AppsManager object which provides convenience fuctions to read and save data related to the specified server id.

return
a AppsManager for a given configuration context

	InstanceEnvironment env = new InstanceEnvironment(serverId);
	return new AppsManager(env);
    
public static AppsManagercreateAppsManager(java.lang.String installRoot, java.lang.String serverId)
Returns a AppsManager object which provides convenience fuctions to read and save data related to the specified server id.

return
a AppsManager for a given configuration context

        return createAppsManager(installRoot, serverId, true);
    
public static AppsManagercreateAppsManager(java.lang.String installRoot, java.lang.String serverId, boolean useBackupServerXml)
Returns a AppsManager object which provides convenience fuctions to read and save data related to the specified server id.

return
a AppsManager for a given configuration context

	InstanceEnvironment env = new InstanceEnvironment(installRoot,serverId);
	return new AppsManager(env, useBackupServerXml);
    
public static AppsManagercreateAppsManager(InstanceEnvironment env, boolean useBackupServerXml)
Returns a manager object for the J2EE applicatoins. AppsManager object provides convenience fuctions to read and save data related to the given server instance.

param
env environment object for a particular server instance
param
useBackupServerXml uses back up server configuration if true
return
manager object for the j2ee applications


        return new AppsManager(env, useBackupServerXml);
    
public static ConnectorModulesManagercreateConnectorModuleManager(InstanceEnvironment env, boolean useBackupServerXml)

        return new ConnectorModulesManager(env, useBackupServerXml);        
    
public static ConnectorModulesManagercreateConnectorModulesManager(java.lang.String serverId)

	InstanceEnvironment env = new InstanceEnvironment(serverId);
	return new ConnectorModulesManager(env);
    
public static EjbModulesManagercreateEjbModuleManager(java.lang.String serverId)

	InstanceEnvironment env = new InstanceEnvironment(serverId);
	return new EjbModulesManager(env);
    
public static EjbModulesManagercreateEjbModuleManager(java.lang.String installRoot, java.lang.String serverId)

	return createEjbModuleManager(installRoot, serverId, true);
    
public static EjbModulesManagercreateEjbModuleManager(java.lang.String installRoot, java.lang.String serverId, boolean useBackupServerXml)

	InstanceEnvironment env = new InstanceEnvironment(installRoot,serverId);
	return new EjbModulesManager(env, useBackupServerXml);
    
public static EjbModulesManagercreateEjbModuleManager(InstanceEnvironment env, boolean useBackupServerXml)
Returns a manager object stand alone ejb modules. It provides convenience functions to read and save data related to the given server instance.

param
env environment object for a particular server instance
param
useBackupServerXml uses back up server configuration if true
return
manager object for stand alone ejb modules


        return new EjbModulesManager(env, useBackupServerXml);
    
public static WebModulesManagercreateWebModuleManager(java.lang.String serverId)

	InstanceEnvironment env = new InstanceEnvironment(serverId);
	return new WebModulesManager(env);
    
public static WebModulesManagercreateWebModuleManager(java.lang.String installRoot, java.lang.String serverId)

	return createWebModuleManager(installRoot, serverId, true);
    
public static WebModulesManagercreateWebModuleManager(java.lang.String installRoot, java.lang.String serverId, boolean useBackupServerXml)

	InstanceEnvironment env = new InstanceEnvironment(installRoot,serverId);
	return new WebModulesManager(env, useBackupServerXml);