All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.izforge.izpack.installer.container.provider.AutomatedInstallDataProvider Maven / Gradle / Ivy

There is a newer version: 5.2.3
Show newest version
package com.izforge.izpack.installer.container.provider;

import java.io.IOException;

import com.izforge.izpack.api.data.AutomatedInstallData;
import com.izforge.izpack.api.exception.InstallerException;
import com.izforge.izpack.api.resource.Locales;
import com.izforge.izpack.api.resource.Resources;
import com.izforge.izpack.core.data.DefaultVariables;
import com.izforge.izpack.installer.data.InstallData;
import com.izforge.izpack.util.Housekeeper;
import com.izforge.izpack.util.PlatformModelMatcher;

/**
 * Install data loader
 */
public class AutomatedInstallDataProvider extends AbstractInstallDataProvider
{

    public AutomatedInstallData provide(Resources resources, Locales locales, DefaultVariables variables,
                                        Housekeeper housekeeper, PlatformModelMatcher matcher)
            throws IOException, ClassNotFoundException, InstallerException
    {
        AutomatedInstallData automatedInstallData = new InstallData(variables, matcher.getCurrentPlatform());
        // Loads the installation data
        loadInstallData(automatedInstallData, resources, matcher, housekeeper);

        loadDefaultLocale(automatedInstallData, locales);
        // Load custom langpack if exist.
        AbstractInstallDataProvider.addCustomLangpack(automatedInstallData, locales);
        loadDynamicVariables(variables, automatedInstallData, resources);
        loadDynamicConditions(automatedInstallData, resources);
        loadInstallerRequirements(automatedInstallData, resources);
        return automatedInstallData;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy