Package | Description |
---|---|
org.eclipse.gef4.common.adapt |
This package provides abstractions and implementations related to an enhanced
adaptable-pattern.
|
org.eclipse.gef4.common.adapt.inject |
This package provides support for Google Guice-based injection of adapters.
|
Modifier and Type | Class and Description |
---|---|
class |
AdaptableSupport<A extends IAdaptable>
A support class to manage adapters for a source
IAdaptable . |
static interface |
IAdaptable.Bound<A extends IAdaptable>
To be implemented by an adapter to indicate that it intends to be bounded
to the respective
IAdaptable it is registered at. |
Modifier and Type | Class and Description |
---|---|
class |
AdapterStore
An
AdapterStore is a basic IAdaptable implementation that can
be used standalone. |
Modifier and Type | Class and Description |
---|---|
class |
AdaptableScope<A extends IAdaptable>
A Guice
Scope that is bound to an IAdaptable -compliant type
and has to be scoped to a respective instance of that type. |
Modifier and Type | Method and Description |
---|---|
static <A extends IAdaptable> |
AdaptableScopes.typed(java.lang.Class<? extends A> type)
Retrieves an
AdaptableScope for the given IAdaptable
-compliant type. |
Modifier and Type | Method and Description |
---|---|
static void |
AdaptableScopes.enter(IAdaptable adaptable)
Enters the
AdaptableScope of all IAdaptable -compliant
types (i.e. |
void |
AdapterInjector.injectMembers(IAdaptable instance) |
static void |
AdaptableScopes.leave(IAdaptable adaptable)
Leaves the
AdaptableScope of all IAdaptable -compliant
types (i.e. |
static void |
AdaptableScopes.switchTo(IAdaptable adaptable)
Switches the
AdaptableScope of all IAdaptable -compliant
types (i.e. |
Modifier and Type | Method and Description |
---|---|
static com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> |
AdapterMaps.getAdapterMapBinder(com.google.inject.Binder binder,
java.lang.Class<? extends IAdaptable> type)
Returns a
MapBinder , which is bound to an AdapterMap
annotation of the given type, and can thus be used to specify adapter
that are to injected into IAdaptable s of the respective type. |
Copyright (c) 2014 itemis AG and others. All rights reserved.