Package com.sun.appserv.addons

Examples of com.sun.appserv.addons.InstallationContext


        } catch (AddonException aoe) {
            throw new AddonFatalException(aoe);
        }

        Configurator conf = Configurator.class.cast(obj);
        InstallationContext ic = new InstallationContext();
        ic.setInstallationDirectory(getInstallRoot());
        ConfigurationContext cc = new ConfigurationContext();
        cc.setInstallationContext(ic);
        cc.setDomainDirectory(getDomainRoot());
        cc.setConfigurationType(type);
        if (type.equals(ConfigurationContext.ConfigurationType.INSTANCE))
View Full Code Here


        for (Map.Entry<Object, String> entry : apiBasedServices) {
            addonName = entry.getValue();
            if (! ar.isInRegistry(addonName)) continue;
            if (ar.isUnConfigurationRequired(addonName)) {
                Configurator conf = Configurator.class.cast(entry.getKey());
                InstallationContext ic = new InstallationContext();
                ic.setInstallationDirectory(getInstallRoot());
                ConfigurationContext cc = new ConfigurationContext();
                cc.setInstallationContext(ic);
                cc.setDomainDirectory(getDomainRoot());
                cc.setConfigurationType(type);
                try {
View Full Code Here

     * Call Installer.install() on a specific addon.
     */
    private void _install(Object obj, String addonName)
        throws AddonFatalException {
        Installer inst = Installer.class.cast(obj);
        InstallationContext ic = new InstallationContext();
        ic.setInstallationDirectory(getInstallRoot());
        try {
            inst.install(ic);
            String addonInstalled =
            localStrings.getString("addon.installed", addonName);
            if (getLogger().isLoggable(Level.INFO)) {
View Full Code Here

     * Call Installer.uninstall() for a specific addon.
     */
    private void _uninstall(Object obj, String addonName)
        throws AddonFatalException {
        Installer inst = Installer.class.cast(obj);
        InstallationContext ic = new InstallationContext();
        ic.setInstallationDirectory(getInstallRoot());
        try {
            inst.uninstall(ic);
            if (getLogger().isLoggable(Level.INFO)) {
                getLogger().info
                (localStrings.getString("addon.uninstalled", addonName));
View Full Code Here

TOP

Related Classes of com.sun.appserv.addons.InstallationContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.