| Modifier and Type | Method and Description |
|---|---|
InjectionContext |
InjectionContext.getParent() |
| Modifier and Type | Method and Description |
|---|---|
static net.lecousin.framework.concurrent.synch.ISynchronizationPoint<Exception> |
InjectionXmlConfiguration.configure(InjectionContext ctx,
net.lecousin.framework.io.IO.Readable xml)
Configure the given InjectionContext with the XML file.
|
static net.lecousin.framework.concurrent.synch.ISynchronizationPoint<Exception> |
InjectionXmlConfiguration.configure(InjectionContext ctx,
String filename)
Configure the given InjectionContext with the XML file.
|
static void |
InjectionXmlConfiguration.configureInjection(InjectionContext ctx,
net.lecousin.framework.xml.XMLStreamReader xml)
Configure the given context with the given XML which must be on an Injection element.
|
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 String |
Injection.getProperty(net.lecousin.framework.application.Application app,
InjectionContext ctx,
String name)
Search a property first in the context, then in the application.
|
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.
|
Object |
SingletonOnDemand.provide(InjectionContext ctx) |
Object |
Singleton.provide(InjectionContext ctx) |
abstract Object |
ObjectProvider.provide(InjectionContext ctx)
Provide an object for injection in the given context.
|
Object |
Factory.provide(InjectionContext ctx) |
static ObjectAttribute |
InjectionXmlConfiguration.readObjectAttribute01(InjectionContext ctx,
net.lecousin.framework.xml.XMLStreamReader xml,
net.lecousin.framework.application.Application app)
Read an attribute from the given XML which must be on the attribute element.
|
static String |
Injection.resolveProperties(InjectionContext ctx,
net.lecousin.framework.application.Application app,
CharSequence value)
Resolve properties in the given value.
|
static String |
Injection.resolveProperties(InjectionContext ctx,
net.lecousin.framework.application.Application app,
String value)
Resolve properties in the given value.
|
static void |
Injection.scanPackage(InjectionContext ctx,
net.lecousin.framework.application.Application app,
String pkgName,
boolean singletons)
Scan a package to find injectable objects.
|
void |
InjectionContext.setParent(InjectionContext parent) |
| Constructor and Description |
|---|
InjectionContext(InjectionContext parent)
Constructor.
|
InjectionSerializationRule(InjectionContext context)
Constructor.
|
Copyright © 2018. All rights reserved.