View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.module.launcher.util;
8   
9   import java.util.ArrayList;
10  import java.util.Collections;
11  import java.util.List;
12  
13  /**
14  *
15  */
16  public class ElementsClearedEvent extends ElementEvent {
17  
18      private List values = new ArrayList();
19  
20      public ElementsClearedEvent(Object source, List values) {
21          super(source, OLDVALUE, NEWVALUE, ElementEvent.CLEARED, 0);
22          if (values != null) {
23              this.values.addAll(values);
24          }
25      }
26  
27      public List getValues() {
28          return Collections.unmodifiableList(values);
29      }
30  }