public class AdaptableScopes
extends java.lang.Object
AdaptableScope| Modifier and Type | Method and Description |
|---|---|
static void |
enter(IAdaptable adaptable)
Enters the
AdaptableScope of all IAdaptable-compliant
types (i.e. |
static void |
leave(IAdaptable adaptable)
Leaves the
AdaptableScope of all IAdaptable-compliant
types (i.e. |
static void |
switchTo(IAdaptable adaptable)
Switches the
AdaptableScope of all IAdaptable-compliant
types (i.e. |
static <A extends IAdaptable> |
typed(java.lang.Class<? extends A> type)
Retrieves an
AdaptableScope for the given IAdaptable
-compliant type. |
public static <A extends IAdaptable> AdaptableScope<A> typed(java.lang.Class<? extends A> type)
AdaptableScope for the given IAdaptable
-compliant type.A - The IAdaptable (sub-)type to return an
AdaptableScope for.type - The type of the AdaptableScope.AdaptableScope instance for the given type.public static void enter(IAdaptable adaptable)
AdaptableScope of all IAdaptable-compliant
types (i.e. (super-)classes implementing IAdaptable and
(super-)interfaces extending IAdaptable) of the given
IAdaptable for the given IAdaptable.adaptable - The IAdaptable instance, for whose types to enter the
AdaptableScopes with the instance.AdaptableScope.enter(IAdaptable)public static void switchTo(IAdaptable adaptable)
AdaptableScope of all IAdaptable-compliant
types (i.e. (super-)classes implementing IAdaptable and
(super-)interfaces extending IAdaptable) of the given
IAdaptable to the given IAdaptable.adaptable - The IAdaptable instance, for whose types to switch the
AdaptableScopes to the instance.AdaptableScope.switchTo(IAdaptable)public static void leave(IAdaptable adaptable)
AdaptableScope of all IAdaptable-compliant
types (i.e. (super-)classes implementing IAdaptable and
(super-)interfaces extending IAdaptable) of the given
IAdaptable for the given IAdaptable.adaptable - The IAdaptable instance, for whose types to leave the
AdaptableScopes with the instance.AdaptableScope.leave(IAdaptable)Copyright (c) 2014 itemis AG and others. All rights reserved.