1 package com.atlassian.johnson.event; 2 3 import java.util.EventObject; 4 5 /** 6 * An {@code EventObject} indicating the provided {@link Event} should be added to the Johnson event container. 7 * 8 * @since 2.0 9 */ 10 public class AddEvent extends EventObject 11 { 12 private final Event event; 13 14 /** 15 * Constructs a new {@code AddEvent}, setting its source and the Johnson {@link Event} to be added. 16 * 17 * @param o the event source 18 * @param event the event to add 19 */ 20 public AddEvent(Object o, Event event) 21 { 22 super(o); 23 24 this.event = event; 25 } 26 27 /** 28 * Retrieves the Johnson {@link Event} to add to the container. 29 * 30 * @return the event to add 31 */ 32 public Event getEvent() 33 { 34 return event; 35 } 36 }