com.izforge.izpack.installer.container.provider
Class AbstractInstallDataProvider

java.lang.Object
  extended by com.izforge.izpack.installer.container.provider.AbstractInstallDataProvider
All Implemented Interfaces:
org.picocontainer.injectors.Provider
Direct Known Subclasses:
AutomatedInstallDataProvider, ConsoleInstallDataProvider, GUIInstallDataProvider

public abstract class AbstractInstallDataProvider
extends Object
implements org.picocontainer.injectors.Provider

Abstract base class for providers of InstallData.


Constructor Summary
AbstractInstallDataProvider()
           
 
Method Summary
static void addCustomLangpack(AutomatedInstallData installData, Locales locales)
          Add the contents of a custom langpack to the default langpack, if it exists.
protected  void loadDefaultLocale(AutomatedInstallData installData, Locales locales)
          Load a default locale in the installData
protected  void loadDynamicConditions(AutomatedInstallData installData, Resources resources)
          Loads dynamic conditions.
protected  void loadDynamicVariables(Variables variables, InstallData installData, Resources resources)
          Loads Dynamic Variables.
protected  void loadInstallData(AutomatedInstallData installData, Resources resources, PlatformModelMatcher matcher, Housekeeper housekeeper)
          Loads the installation data.
protected  void loadInstallerRequirements(AutomatedInstallData installData, Resources resources)
          Load installer conditions.
protected  void setStandardVariables(AutomatedInstallData installData, String dir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractInstallDataProvider

public AbstractInstallDataProvider()
Method Detail

loadInstallData

protected void loadInstallData(AutomatedInstallData installData,
                               Resources resources,
                               PlatformModelMatcher matcher,
                               Housekeeper housekeeper)
                        throws IOException,
                               ClassNotFoundException
Loads the installation data. Also sets environment variables to installdata. All system properties are available as $SYSTEM_ where is the actual name _BUT_ with all separators replaced by '_'. Properties with null values are never stored. Example: $SYSTEM_java_version or $SYSTEM_os_name

Parameters:
installData - the installation data to populate
resources - the resources
matcher - the platform-model matcher
housekeeper - the housekeeper for cleaning up temporary files
Throws:
IOException - for any I/O error
ClassNotFoundException - if a serialized object's class cannot be found
ResourceException - for any resource error

setStandardVariables

protected void setStandardVariables(AutomatedInstallData installData,
                                    String dir)

addCustomLangpack

public static void addCustomLangpack(AutomatedInstallData installData,
                                     Locales locales)
Add the contents of a custom langpack to the default langpack, if it exists.

Parameters:
installData - the install data to be used

loadDynamicVariables

protected void loadDynamicVariables(Variables variables,
                                    InstallData installData,
                                    Resources resources)
Loads Dynamic Variables.

Parameters:
variables - the collection to added variables to
installData - the installation data

loadDynamicConditions

protected void loadDynamicConditions(AutomatedInstallData installData,
                                     Resources resources)
Loads dynamic conditions.

Parameters:
installData - the installation data
resources - the resources

loadInstallerRequirements

protected void loadInstallerRequirements(AutomatedInstallData installData,
                                         Resources resources)
Load installer conditions.

Parameters:
installData - the installation data
Throws:
IOException - for any I/O error
ClassNotFoundException - if a serialized object's class cannot be found
ResourceNotFoundException - if the resource cannot be found

loadDefaultLocale

protected void loadDefaultLocale(AutomatedInstallData installData,
                                 Locales locales)
Load a default locale in the installData

Parameters:
installData - the installation data
locales - the supported locales
Throws:
IOException - for any I/O error


Copyright © 2018. All rights reserved.