com.izforge.izpack
Class CustomData

java.lang.Object
  extended bycom.izforge.izpack.CustomData
All Implemented Interfaces:
java.io.Serializable

public class CustomData
extends java.lang.Object
implements java.io.Serializable

Container for serialized custom data.

Author:
Klaus Bartz
See Also:
Serialized Form

Field Summary
 java.util.List contents
          The contens of the managed custom data.
static int INSTALLER_LISTENER
          Identifier for custom data type "installer listener".
 java.lang.String listenerName
          Full qualified name of the managed listener.
 java.util.List osConstraints
          The target operation system of this custom action
(package private) static long serialVersionUID
           
 int type
          Type of this custom action data; possible are INSTALLER_LISTENER, UNINSTALLER_LISTENER, UNINSTALLER_LIB and UNINSTALLER_JAR.
static int UNINSTALLER_JAR
          Identifier for custom data typ "uninstaller jar files".
static int UNINSTALLER_LIB
          Identifier for custom data typ "uninstaller lib".
static int UNINSTALLER_LISTENER
          Identifier for custom data typ "uninstaller listener".
 
Constructor Summary
CustomData(java.lang.String listenerName, java.util.List contents, java.util.List osConstraints, int type)
          Constructs an CustomData object with the needed values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

INSTALLER_LISTENER

public static final int INSTALLER_LISTENER
Identifier for custom data type "installer listener".

See Also:
Constant Field Values

UNINSTALLER_LISTENER

public static final int UNINSTALLER_LISTENER
Identifier for custom data typ "uninstaller listener".

See Also:
Constant Field Values

UNINSTALLER_LIB

public static final int UNINSTALLER_LIB
Identifier for custom data typ "uninstaller lib". This is used for binary libs (DLLs or SHLs or SOs or ...) which will be needed from the uninstaller.

See Also:
Constant Field Values

UNINSTALLER_JAR

public static final int UNINSTALLER_JAR
Identifier for custom data typ "uninstaller jar files".

See Also:
Constant Field Values

contents

public java.util.List contents
The contens of the managed custom data. If it is a listener or a uninstaller jar, all contained files are listed with it complete sub path. If it is a uninstaller native library, this value is the path in the installer jar.


listenerName

public java.lang.String listenerName
Full qualified name of the managed listener. If type is not a listener, this value is undefined.


osConstraints

public java.util.List osConstraints
The target operation system of this custom action


type

public int type
Type of this custom action data; possible are INSTALLER_LISTENER, UNINSTALLER_LISTENER, UNINSTALLER_LIB and UNINSTALLER_JAR.

Constructor Detail

CustomData

public CustomData(java.lang.String listenerName,
                  java.util.List contents,
                  java.util.List osConstraints,
                  int type)
Constructs an CustomData object with the needed values. If a listener will be managed with this object, the full qualified name of the listener self must be set as listener name. If a listener or a jar file for uninstall will be managed, all needed files (class, properties and so on) must be referenced in the contents with the path which they have in the installer jar file.

Parameters:
listenerName - path of the listener
contents - also needed objects referenced with the path in install.jar
osConstraints - target operation system of this custom action
type - type of this custom data