com.izforge.izpack.util
Class OSClassHelper

java.lang.Object
  extended by com.izforge.izpack.util.OSClassHelper
Direct Known Subclasses:
RegistryHandler

public class OSClassHelper
extends java.lang.Object

This class is the system independent base class for helpers which are system dependent in its subclasses.

Author:
Klaus Bartz

Field Summary
protected  AutomatedInstallData installdata
           
protected  java.lang.Object worker
           
protected  java.lang.Class workerClass
           
 
Constructor Summary
OSClassHelper()
          Default constructor
OSClassHelper(java.lang.String className)
          Creates an object which contains as worker an object of the given class name if possible.
 
Method Summary
 boolean good()
          Return whether the helper can do the work or not.
 boolean verify(AutomatedInstallData idata)
          Verifies the helper.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

installdata

protected AutomatedInstallData installdata

workerClass

protected java.lang.Class workerClass

worker

protected java.lang.Object worker
Constructor Detail

OSClassHelper

public OSClassHelper()
Default constructor


OSClassHelper

public OSClassHelper(java.lang.String className)
Creates an object which contains as worker an object of the given class name if possible. If not possible, only the stack trace will be printed, no exception will be raised. To determine the state, there is the method good.

Parameters:
className - full qualified class name of the needed worker
Method Detail

good

public boolean good()
Return whether the helper can do the work or not.

Returns:
whether the helper can do the work or not

verify

public boolean verify(AutomatedInstallData idata)
               throws java.lang.Exception
Verifies the helper.

Parameters:
idata - current install data
Returns:
whether the helper is good or not
Throws:
java.lang.Exception