1 /******************************************************************************* 2 * Copyright (c) 2003, 2004 IBM Corporation and others. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Common Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/cpl-v10.html 7 * 8 * Contributors: 9 * IBM Corporation - initial API and implementation 10 *******************************************************************************/ 11 package org.eclipse.osgi.service.resolver; 12 13 import java.util.EventObject; 14 15 public class StateChangeEvent extends EventObject { 16 private StateDelta delta; 17 18 public StateChangeEvent(StateDelta delta) { 19 super(delta.getState()); 20 this.delta = delta; 21 } 22 23 /** 24 * Returns a delta detailing changes to a state object. 25 * 26 * @return a state delta 27 */ 28 public StateDelta getDelta() { 29 return delta; 30 } 31 }