Examples of InstallationContext


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

Examples of com.sun.appserv.addons.InstallationContext

        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

Examples of com.sun.appserv.addons.InstallationContext

     * 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

Examples of com.sun.appserv.addons.InstallationContext

     * 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

Examples of org.apache.sling.installer.api.tasks.InstallationContext

     * Execute all tasks
     */
    private ACTION executeTasks(final SortedSet<InstallTask> tasks) {
        if ( !tasks.isEmpty() ) {

            final InstallationContext ctx = new InstallationContext() {

                public void addTaskToNextCycle(final InstallTask t) {
                    logger.warn("Deprecated method addTaskToNextCycle was called. Task will be executed in this cycle instead: {}", t);
                    synchronized ( tasks ) {
                        tasks.add(t);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.