org.eclipse.net4j.util.lifecycle
Class LifecycleUtil
java.lang.Object
org.eclipse.net4j.util.lifecycle.LifecycleUtil
- public final class LifecycleUtil
- extends Object
Various static helper methods for dealing with lifecycles
.
Method Summary |
static void |
activate(Object object)
|
static void |
activate(Object object,
boolean useAnnotation)
|
static Exception |
activateSilent(Object object)
|
static Exception |
activateSilent(Object object,
boolean useAnnotation)
|
static void |
checkActive(Object object)
|
static void |
checkInactive(Object object)
|
static Exception |
deactivate(Object object)
|
static Exception |
deactivate(Object object,
boolean useAnnotation)
|
static void |
deactivate(Object object,
OMLogger.Level logLevel)
|
static void |
deactivateNoisy(Object object)
|
static void |
deactivateNoisy(Object object,
boolean useAnnotation)
|
static
|
delegateLifecycle(ClassLoader loader,
T pojo,
Class<?> pojoInterface,
ILifecycle delegate)
|
static
|
delegateLifecycle(ClassLoader loader,
T pojo,
ILifecycle delegate)
|
static LifecycleState |
getLifecycleState(Object object)
|
static boolean |
isActive(Object object)
|
static boolean |
isDeferredActivation(Object object)
|
static boolean |
waitFor(Object object,
long millis,
LifecycleState state)
|
static boolean |
waitForActive(Object object,
long millis)
|
static boolean |
waitForInactive(Object object,
long millis)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isDeferredActivation
public static boolean isDeferredActivation(Object object)
- Since:
- 3.2
getLifecycleState
public static LifecycleState getLifecycleState(Object object)
- Since:
- 3.0
isActive
public static boolean isActive(Object object)
checkActive
public static void checkActive(Object object)
throws IllegalStateException
- Throws:
IllegalStateException
- Since:
- 2.0
checkInactive
public static void checkInactive(Object object)
throws IllegalStateException
- Throws:
IllegalStateException
- Since:
- 2.0
activate
public static void activate(Object object)
throws LifecycleException
- Throws:
LifecycleException
activate
public static void activate(Object object,
boolean useAnnotation)
throws LifecycleException
- Throws:
LifecycleException
- See Also:
LifecycleUtil.Activator
activateSilent
public static Exception activateSilent(Object object)
activateSilent
public static Exception activateSilent(Object object,
boolean useAnnotation)
- See Also:
LifecycleUtil.Activator
waitForActive
public static boolean waitForActive(Object object,
long millis)
waitForInactive
public static boolean waitForInactive(Object object,
long millis)
- Since:
- 3.1
waitFor
public static boolean waitFor(Object object,
long millis,
LifecycleState state)
- Since:
- 3.1
deactivate
public static Exception deactivate(Object object)
deactivate
public static Exception deactivate(Object object,
boolean useAnnotation)
- See Also:
LifecycleUtil.Deactivator
deactivate
public static void deactivate(Object object,
OMLogger.Level logLevel)
- Since:
- 2.0
deactivateNoisy
public static void deactivateNoisy(Object object)
throws LifecycleException
- Throws:
LifecycleException
deactivateNoisy
public static void deactivateNoisy(Object object,
boolean useAnnotation)
throws LifecycleException
- Throws:
LifecycleException
delegateLifecycle
public static <T> T delegateLifecycle(ClassLoader loader,
T pojo,
Class<?> pojoInterface,
ILifecycle delegate)
- Since:
- 2.0
delegateLifecycle
public static <T> T delegateLifecycle(ClassLoader loader,
T pojo,
ILifecycle delegate)
- Since:
- 2.0
Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.