FileDocCategorySizeDatePackage
AddonFacade.javaAPI DocGlassfish v2 API5005Fri May 04 22:30:24 BST 2007com.sun.enterprise.addons

AddonFacade

public class AddonFacade extends Object
Facade class that will be used by any client for Addon runtime.
since
9.1
author
binod@dev.java.net

Fields Summary
Constructors Summary
Methods Summary
public static voidconfigureDAS(java.io.File installDir, java.io.File domainDir, java.util.logging.Logger logr)
Install all jar files. This is called from asadmin start-domain.

        AddonConfigurationController acc = 
        AddonController.getAddonConfigurationController();
        acc.setLogger(logr);
        acc.configureDAS(installDir, domainDir);
    
public static voidconfigureInstances(java.io.File installDir, java.io.File domainDir, java.util.logging.Logger logr)
Install all jar files. This is called from asadmin start-instances.

        AddonConfigurationController acc = 
        AddonController.getAddonConfigurationController();
        acc.setLogger(logr);
        acc.configureInstances(installDir, domainDir);
    
public static voidinstall(java.io.File installDir, java.io.File jarFile, java.util.logging.Logger logr)
Install a single addon jar file. This is called from asadmin install-addon command.

        AddonInstallationController aic =
        AddonController.getAddonInstallationController();
        aic.setLogger(logr);
        aic.install(installDir, jarFile);
    
public static voidinstall(java.io.File installDir, java.util.logging.Logger logr)
Install all jar files. This is called from appserver installer.

        AddonInstallationController aic =
        AddonController.getAddonInstallationController();
        aic.setLogger(logr);
        aic.install(installDir);
    
public static voidunconfigureDAS(java.io.File installDir, java.io.File domainDir, java.util.logging.Logger logr)
Unconfigure the components from DAS. This is called from asadmin stop-domain.

        AddonConfigurationController acc = 
        AddonController.getAddonConfigurationController();
        acc.setLogger(logr);
        acc.unconfigureDAS(installDir, domainDir);
    
public static voiduninstall(java.io.File installDir, java.lang.String addon, java.util.logging.Logger logr)
Uninstall a single addon . This is called from asadmin uninstall-addon command.

        AddonInstallationController aic =
        AddonController.getAddonInstallationController();
        aic.setLogger(logr);
        aic.uninstall(installDir, addon);
    
public static voiduninstall(java.io.File installDir, java.util.logging.Logger logr)
Uninstall all addons. This is called from appserver uninstaller.

        AddonInstallationController aic =
        AddonController.getAddonInstallationController();
        aic.setLogger(logr);
        aic.uninstall(installDir);