| Modifier and Type | Method and Description |
|---|---|
void |
InjectionContext.add(ObjectProvider provider)
Add an object provider.
|
static Object |
Injection.create(InjectionContext ctx,
Class<?> clazz,
List<String> params,
ObjectMethod initMethod,
List<ObjectAttribute> attrs)
Create an object to be injected.
|
static Object |
Injection.create(InjectionContext ctx,
Class<?> clazz,
ObjectMethod initMethod,
List<ObjectAttribute> attrs)
Create an object to be injected.
|
Object |
ObjectAttribute.create(InjectionContext ctx,
Class<?> type,
Type genericType,
Annotation[] annotations)
Create the object based on the given context.
|
static Object |
Injection.createObjectFromString(Class<?> type,
Type genericType,
String value,
Annotation[] annotations)
Create an object from a string value.
|
<T> T |
InjectionContext.getObject(Class<T> type)
Retrieve an object by its implemented type.
|
Object |
InjectionContext.getObjectById(String id)
Retrieve an object by its id.
|
<T> T |
InjectionContext.getObjectById(String id,
Class<T> type)
Retrieve an object by its id and implemented type.
|
static void |
Injection.inject(InjectionContext ctx,
Object instance)
Perform injection on the instance, by looking for fields having the Inject annotation.
|
static void |
Injection.injectAttribute(InjectionContext ctx,
Object instance,
ObjectAttribute attribute)
Inject the given attribute in the instance.
|
abstract Object |
ObjectProvider.provide(InjectionContext ctx)
Provide an object for injection in the given context.
|
Object |
Factory.provide(InjectionContext ctx) |
Copyright © 2018. All rights reserved.