Package | Description |
---|---|
org.eclipse.e4.core.contexts |
Application programming interfaces for Eclipse contexts.
|
org.eclipse.e4.core.di |
Application programming interfaces describing dependency injection framework.
|
org.eclipse.e4.core.di.suppliers |
Application programming interfaces for dependency injection object suppliers.
|
Modifier and Type | Method and Description |
---|---|
static void |
ContextInjectionFactory.inject(Object object,
IEclipseContext context)
Injects a context into a domain object.
|
static Object |
ContextInjectionFactory.invoke(Object object,
Class<? extends Annotation> qualifier,
IEclipseContext context)
Call a method, injecting the parameters from the context.
|
static Object |
ContextInjectionFactory.invoke(Object object,
Class<? extends Annotation> qualifier,
IEclipseContext context,
IEclipseContext localContext,
Object defaultValue)
Call a method, injecting the parameters from two contexts.
|
static Object |
ContextInjectionFactory.invoke(Object object,
Class<? extends Annotation> qualifier,
IEclipseContext context,
Object defaultValue)
Call a method, injecting the parameters from the context.
|
static <T> T |
ContextInjectionFactory.make(Class<T> clazz,
IEclipseContext context)
Obtain an instance of the specified class and inject it with the context.
|
static <T> T |
ContextInjectionFactory.make(Class<T> clazz,
IEclipseContext context,
IEclipseContext staticContext)
Obtain an instance of the specified class and inject it with the context.
|
static void |
ContextInjectionFactory.uninject(Object object,
IEclipseContext context)
Un-injects the context from the object.
|
Modifier and Type | Method and Description |
---|---|
void |
IInjector.inject(Object object,
PrimaryObjectSupplier objectSupplier)
Injects data from the supplier into a domain object.
|
Object |
IInjector.invoke(Object object,
Class<? extends Annotation> qualifier,
Object defaultValue,
PrimaryObjectSupplier objectSupplier)
Call the annotated method on an object, injecting the parameters from the supplier.
|
Object |
IInjector.invoke(Object object,
Class<? extends Annotation> qualifier,
Object defaultValue,
PrimaryObjectSupplier objectSupplier,
PrimaryObjectSupplier localSupplier)
Call the annotated method on an object, injecting the parameters from the suppliers.
|
Object |
IInjector.invoke(Object object,
Class<? extends Annotation> qualifier,
PrimaryObjectSupplier objectSupplier)
Call the annotated method on an object, injecting the parameters from the supplier.
|
<T> T |
IInjector.make(Class<T> clazz,
PrimaryObjectSupplier objectSupplier)
Obtain an instance of the specified class and inject it with the data from the supplier.
|
<T> T |
IInjector.make(Class<T> clazz,
PrimaryObjectSupplier objectSupplier,
PrimaryObjectSupplier staticSupplier)
Obtain an instance of the specified class and inject it with the data from the supplier.
|
void |
IInjector.uninject(Object object,
PrimaryObjectSupplier objectSupplier)
Un-injects the supplier from the object.
|
Modifier and Type | Method and Description |
---|---|
void |
IRequestor.disposed(PrimaryObjectSupplier objectSupplier)
Notifies the requestor that an object supplier has been disposed of.
|
Object |
IRequestor.execute()
Call this method to perform requestor's task.
|
void |
IRequestor.resolveArguments(boolean initial)
Forces the requestor to resolve arguments it depends on.
|
boolean |
IRequestor.uninject(Object object,
PrimaryObjectSupplier objectSupplier)
Notifies the requestor that an object should be un-injected.
|
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.