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.


Variable Index

 o DRY_RUN
Indicates this is a dry-run and to not actually install anything.
 o state
The WizardState that this object belongs to Deprecated.

Constructor Index

 o Product()
Create a new Product with no parent and children (not recommended!)
 o Product(Task, WizardState)
Create a new Product with desired parent and no children.

Method Index

 o addRuntimeResources(Vector)
Add the runtime resources required by this class.
 o getProductID()
Returns the Product ID of this Product.
 o getSelectedDestinationTable(WizardState)
Retrieves the table of what would install if the install were to take place this instant.
 o getState()
Gets the WizardState that this object belongs to.
 o getTask()
Gets install task which will drive the tree to install itself.
 o performInstallation(WizardState)
Installs this product.
 o performUninstallation(WizardState)
Uninstall this product.
 o setState(WizardState)
Sets the WizardState into Product
 o setTask(Task)
Sets the install task
 o writeToLog(String, String)
Utility function to write to a log.
 o writeToLog(WizardState, String, String)
Utility function to write to the log.

Variables

 o DRY_RUN
 public static boolean DRY_RUN
Indicates this is a dry-run and to not actually install anything.

 o state
 protected transient WizardState state
Note: state is deprecated. use get/setState()

The WizardState that this object belongs to

Constructors

 o Product
 public Product()
Create a new Product with no parent and children (not recommended!)

 o 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

Methods

 o performUninstallation
 public boolean performUninstallation(WizardState state)
Uninstall this product.

Parameters:
state - The WizardState.
Overrides:
performUninstallation in class InstallNode
 o getTask
 public Task getTask()
Gets install task which will drive the tree to install itself.

Returns:
The install task that will install us.
 o setTask
 public void setTask(Task task)
Sets the install task

Parameters:
task - The install task which will drive the tree to install itself
 o 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
 o 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
 o 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
 o 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
 o 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.
 o 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.
 o performInstallation
 public boolean performInstallation(WizardState state)
Installs this product.

Parameters:
state - The WizardState.
Overrides:
performInstallation in class InstallNode
 o 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