| 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. |
static class |
IAdaptable.Bound.Impl<T extends IAdaptable>
Default implementation of
IAdaptable.Bound that manages a
ReadOnlyObjectProperty for the IAdaptable. |
| 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. |
protected void |
AdapterInjector.injectAdapters(IAdaptable adaptable)
Performs the adapter map injection for the given adaptable instance.
|
protected void |
AdapterInjector.injectAdapters(IAdaptable adaptable,
java.util.List<java.lang.String> issues)
Performs the adapter map injection for the given adaptable instance.
|
protected void |
AdapterInjector.injectAdapters(IAdaptable adaptable,
java.util.List<java.lang.String> issues,
java.util.SortedMap<com.google.inject.Key<?>,com.google.inject.Binding<?>> adapterMapBindings)
Performs the adapter map injection with the given adapter map bindings
for the given adaptable instance.
|
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 IAdaptables of the respective type. |
static com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> |
AdapterMaps.getAdapterMapBinder(com.google.inject.Binder binder,
java.lang.Class<? extends IAdaptable> type,
java.lang.String role)
Returns a
MapBinder, which is bound to an AdapterMap
annotation of the given type and role, and can thus be used to specify
adapter that are to injected into IAdaptables of the respective
type and role. |
Copyright (c) 2014 itemis AG and others. All rights reserved.