blob: 3b9ed7248eeee2e33385881b6ad6804f1bd44f5e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
/**
* Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Eike Stepper - initial API and implementation
*/
package org.eclipse.net4j.util.lifecycle;
import org.eclipse.net4j.util.event.IEvent;
/**
* An {@link IEvent event} fired from an entity with a {@link ILifecycle lifecycle} when its lifecycle {@link Kind
* state} has changed.
*
* @author Eike Stepper
* @noextend This interface is not intended to be extended by clients.
* @noimplement Thi import org.eclipse.net4j.util.event.IEvent; import org.eclipse.net4j.util.event.IEvent; import
* org.eclipse.net4j.util.event.IEvent; s interface is not intended to be implemented by clients.
* @apiviz.has org.eclipse.net4j.util.lifecycle.ILifecycleEvent.Kind
*/
public interface ILifecycleEvent extends IEvent
{
/**
* @since 3.0
*/
public ILifecycle getSource();
public Kind getKind();
/**
* Enumerates the possible {@link ILifecycle#getLifecycleState() lifecycle state} changes of an entity.
*
* @author Eike Stepper
*/
public enum Kind
{
ABOUT_TO_ACTIVATE, ACTIVATED, ABOUT_TO_DEACTIVATE, DEACTIVATED
}
}
|