All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.install.products.Product
java.lang.Object
|
+----com.sun.install.products.InstallComponent
|
+----com.sun.install.products.InstallNode
|
+----com.sun.install.products.Product
- public class Product
- extends InstallNode
Product is the top-level object for the product tree. It is
derived from the same class as all other members of the tree. It also
holds arbitrary product-specific information for the tree and the
client panels to use.
-
DRY_RUN
- Indicates this is a dry-run and to not actually install anything.
-
state
-
The WizardState that this object belongs to
Deprecated.
-
Product()
- Create a new Product with no parent and children (not recommended!)
-
Product(Task, WizardState)
- Create a new Product with desired parent and no children.
-
addRuntimeResources(Vector)
- Add the runtime resources required by this class.
-
getProductID()
- Returns the Product ID of this Product.
-
getSelectedDestinationTable(WizardState)
- Retrieves the table of what would install if the install were to take place
this instant.
-
getState()
- Gets the WizardState that this object belongs to.
-
getTask()
- Gets install task which will drive the tree to install itself.
-
performInstallation(WizardState)
- Installs this product.
-
performUninstallation(WizardState)
- Uninstall this product.
-
setState(WizardState)
- Sets the WizardState into Product
-
setTask(Task)
- Sets the install task
-
writeToLog(String, String)
- Utility function to write to a log.
-
writeToLog(WizardState, String, String)
- Utility function to write to the log.
DRY_RUN
public static boolean DRY_RUN
- Indicates this is a dry-run and to not actually install anything.
state
protected transient WizardState state
- Note: state is deprecated.
use get/setState()
- The WizardState that this object belongs to
Product
public Product()
- Create a new Product with no parent and children (not recommended!)
Product
public Product(Task productTask,
WizardState wizardState)
- Create a new Product with desired parent and no children.
- Parameters:
- productTask - The task responsible for installing this tree
- wizardState - The wizard State this product tree should attach to
performUninstallation
public boolean performUninstallation(WizardState state)
- Uninstall this product.
- Parameters:
- state - The WizardState.
- Overrides:
- performUninstallation in class InstallNode
getTask
public Task getTask()
- Gets install task which will drive the tree to install itself.
- Returns:
- The install task that will install us.
setTask
public void setTask(Task task)
- Sets the install task
- Parameters:
- task - The install task which will drive the tree to install itself
getState
public WizardState getState()
- Gets the WizardState that this object belongs to.
- Returns:
- wizard state which this object belongs to
- Overrides:
- getState in class InstallComponent
setState
public void setState(WizardState state)
- Sets the WizardState into Product
- Parameters:
- state - The WizardState which this object should belong to.
- Overrides:
- setState in class InstallComponent
getSelectedDestinationTable
public Hashtable getSelectedDestinationTable(WizardState state)
- Retrieves the table of what would install if the install were to take place
this instant. All entries with the same destinations are combined into one
entry, and their sizes combined.
- Parameters:
- state - The WizardState that this object belongs to.
- Returns:
- The destination table for this Product
writeToLog
public static void writeToLog(WizardState ws,
String logKey,
String output)
- Utility function to write to the log.
- Parameters:
- ws - The WizardState this object belongs to
- logKey - The key that the desired path to the log is stored in the
WizardState as.
- output - The string to write to the log
writeToLog
public static void writeToLog(String logFile,
String output)
- Utility function to write to a log.
- Parameters:
- logFile - Path to the desired log file.
- output - The string to write to the log.
getProductID
protected String getProductID()
- Returns the Product ID of this Product. If the ProductID does not exist,
a new, random one will be generated.
- Returns:
- The Product ID of this product.
performInstallation
public boolean performInstallation(WizardState state)
- Installs this product.
- Parameters:
- state - The WizardState.
- Overrides:
- performInstallation in class InstallNode
addRuntimeResources
public void addRuntimeResources(Vector resourceVector)
- Add the runtime resources required by this class.
- Parameters:
- resourceVector - The vector containing all of the required resources
for this class
- Overrides:
- addRuntimeResources in class InstallNode
All Packages Class Hierarchy This Package Previous Next Index