package com.izforge.izpack.api.data.binding;

/**
 * Listener entity
 *
 * @author Anthonin Bonnefoy
 */
public class Listener
{
    private String classname;

    private Stage stage;

    private OsModel os;

    private String jar;

    public Listener(String classname, Stage stage, OsModel os, String jar)
    {
        this.classname = classname;
        this.stage = stage;
        this.os = os;
        this.jar = jar;
    }

    public String getClassname()
    {
        return classname;
    }

    public String getJar()
    {
        return jar;
    }

    public Stage getStage()
    {
        return stage;
    }

    public OsModel getOs()
    {
        return os;
    }

    @Override
    public String toString()
    {
        return "Listener{" +
                "classname='" + classname + '\'' +
                ", stage=" + stage +
                ", os=" + os +
                '}';
    }
}

@@ -39,16 +39,40 @@
 nding;%0A%0A
+import java.util.List;%0A%0A
 /**%0A * L
@@ -215,26 +215,36 @@
 private 
+List%3C
 OsModel
+%3E
  os
+List
 ;%0A%0A    p
@@ -318,18 +318,28 @@
 ge, 
+List%3C
 OsModel
+%3E
  os
+List
 , St
@@ -437,13 +437,21 @@
 s.os
+List
  = os
+List
 ;%0A  
@@ -689,21 +689,31 @@
 lic 
+List%3C
 OsModel
+%3E
  getOs
+List
 ()%0A 
@@ -734,16 +734,20 @@
 eturn os
+List
 ;%0A    %7D%0A
@@ -938,15 +938,23 @@
 , os
+List
 =%22 + os
+List
  +%0A 

Change os constraint to list of os in listener model