blob: 5e8a6bf60dfeaa2940d99c118ec8caf7e5dc9562 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005, 2007 Oracle Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Ian Trimble - initial API and implementation
*******************************************************************************/
package org.eclipse.jst.jsf.core.jsfappconfig;
/**
* JSFAppConfigProvidersChangeEvent provides change information to instances of
* IJSFAppConfigProvidersChangeListener.
*
* <p><b>Provisional API - subject to change</b></p>
*
* @author Ian Trimble - Oracle
*/
public class JSFAppConfigProvidersChangeEvent {
/**
* Event type; instance of IJSFAppConfigProvider was added (value == 1).
*/
public static final int ADDED = 1;
/**
* Event type; instance of IJSFAppConfigProvider was removed (value == 2).
*/
public static final int REMOVED = 2;
/**
* Instance of IJSFAppConfigProvider that was added or removed.
*/
protected IJSFAppConfigProvider configProvider = null;
/**
* Event type.
*/
protected int eventType;
/**
* Constructs an instance.
*
* @param configProvider Instance of IJSFAppConfigProvider that was added
* or removed
* @param eventType Event type
*/
public JSFAppConfigProvidersChangeEvent(IJSFAppConfigProvider configProvider, int eventType) {
this.configProvider = configProvider;
this.eventType = eventType;
}
/**
* Gets the instance of IJSFAppConfigProvider that was added or removed.
*
* @return Instance of IJSFAppConfigProvider that was added or removed
*/
public IJSFAppConfigProvider getJSFAppConfigProvider() {
return configProvider;
}
/**
* Gets the event type.
*
* @return Event type
*/
public int getEventType() {
return eventType;
}
}