Skip navigation links
A C D F G I K N O P R S T 

A

add(ObjectProvider) - Method in class net.lecousin.framework.injection.InjectionContext
Add an object provider.
apply(SerializationClass, SerializationContext, List<SerializationRule>, boolean) - Method in class net.lecousin.framework.injection.InjectionSerializationRule
 
attributeName - Variable in class net.lecousin.framework.injection.ObjectValueFromSingletonAttribute
 
attributes - Variable in class net.lecousin.framework.injection.Factory
 

C

call(InjectionContext, Object, ObjectMethod) - Static method in class net.lecousin.framework.injection.Injection
Call a method on an instance.
close() - Method in class net.lecousin.framework.injection.Factory
 
close() - Method in class net.lecousin.framework.injection.InjectionContext
 
close() - Method in class net.lecousin.framework.injection.ObjectProvider
 
close() - Method in class net.lecousin.framework.injection.Singleton
 
configure(InjectionContext, String) - Static method in class net.lecousin.framework.injection.xml.InjectionXmlConfiguration
Configure the given InjectionContext with the XML file.
configure(InjectionContext, IO.Readable) - Static method in class net.lecousin.framework.injection.xml.InjectionXmlConfiguration
Configure the given InjectionContext with the XML file.
configureInjection(InjectionContext, XMLStreamReader) - Static method in class net.lecousin.framework.injection.xml.InjectionXmlConfiguration
Configure the given context with the given XML which must be on an Injection element.
configureInjection(InjectionContext, XMLStreamReader) - Method in interface net.lecousin.framework.injection.xml.InjectionXmlParser
Entry-point of the parser.
configureInjection(InjectionContext, XMLStreamReader) - Method in class net.lecousin.framework.injection.xml.InjectionXmlParser01
 
create(InjectionContext, Class<?>, ObjectMethod, List<ObjectAttribute>) - Static method in class net.lecousin.framework.injection.Injection
Create an object to be injected.
create(InjectionContext, Class<T>, List<ObjectValue>, ObjectMethod, List<ObjectAttribute>) - Static method in class net.lecousin.framework.injection.Injection
Create an object to be injected.
create(InjectionContext, Class<T>, Type, Annotation[]) - Method in interface net.lecousin.framework.injection.ObjectValue
Create the object based on the given context.
create(InjectionContext, Class<T>, Type, Annotation[]) - Method in class net.lecousin.framework.injection.ObjectValueClass
 
create(InjectionContext, Class<T>, Type, Annotation[]) - Method in class net.lecousin.framework.injection.ObjectValueFromSingletonAttribute
 
create(InjectionContext, Class<T>, Type, Annotation[]) - Method in class net.lecousin.framework.injection.ObjectValueFromString
 
create(InjectionContext, Class<T>, Type, Annotation[]) - Method in class net.lecousin.framework.injection.ObjectValueList
 
create(InjectionContext, Class<T>, Type, Annotation[]) - Method in class net.lecousin.framework.injection.ObjectValueMap
 
create(InjectionContext, Class<T>, Type, Annotation[]) - Method in class net.lecousin.framework.injection.ObjectValueRefId
 
create(InjectionContext, Class<T>, Type, Annotation[]) - Method in class net.lecousin.framework.injection.ObjectValueRefType
 
createObjectFromString(Class<T>, Type, String, Annotation[]) - Static method in class net.lecousin.framework.injection.Injection
Create an object from a string value.
ctx - Variable in class net.lecousin.framework.injection.ObjectProvider
 

D

destroy - Variable in class net.lecousin.framework.injection.Singleton
 
DestroyMethod - Annotation Type in net.lecousin.framework.injection
Signal a destroy method, that will be called when its injection context is closed.

F

Factory - Class in net.lecousin.framework.injection
Factory of objects.
Factory(InjectionContext, Class<?>, Class<?>, ObjectMethod, List<ObjectAttribute>, String) - Constructor for class net.lecousin.framework.injection.Factory
Constructor.

G

getId() - Method in class net.lecousin.framework.injection.ObjectProvider
 
getInstance(InjectionContext) - Method in class net.lecousin.framework.injection.ObjectValueFromSingletonAttribute
 
getInstance(InjectionContext) - Method in class net.lecousin.framework.injection.ObjectValueFromSingletonAttributeById
 
getInstance(InjectionContext) - Method in class net.lecousin.framework.injection.ObjectValueFromSingletonAttributeByType
 
getName() - Method in class net.lecousin.framework.injection.ObjectAttribute
 
getName() - Method in class net.lecousin.framework.injection.ObjectMethod
 
getObject(Class<T>) - Method in class net.lecousin.framework.injection.InjectionContext
Retrieve an object by its implemented type.
getObjectById(String) - Method in class net.lecousin.framework.injection.InjectionContext
Retrieve an object by its id.
getObjectById(String, Class<T>) - Method in class net.lecousin.framework.injection.InjectionContext
Retrieve an object by its id and implemented type.
getParameters() - Method in class net.lecousin.framework.injection.ObjectMethod
 
getParent() - Method in class net.lecousin.framework.injection.InjectionContext
 
getProperty(Application, InjectionContext, String) - Static method in class net.lecousin.framework.injection.Injection
Search a property first in the context, then in the application.
getProperty(String) - Method in class net.lecousin.framework.injection.InjectionContext
Return a property or null if not set.
getRoot() - Static method in class net.lecousin.framework.injection.InjectionContext
 
getType() - Method in class net.lecousin.framework.injection.ObjectProvider
 
getValue() - Method in class net.lecousin.framework.injection.ObjectAttribute
 

I

id - Variable in class net.lecousin.framework.injection.ObjectProvider
 
implType - Variable in class net.lecousin.framework.injection.Factory
 
Init - Class in net.lecousin.framework.injection
Initialization.
Init() - Constructor for class net.lecousin.framework.injection.Init
Constructor automatically called.
initMethod - Variable in class net.lecousin.framework.injection.Factory
 
InitMethod - Annotation Type in net.lecousin.framework.injection
Signal an initialization method, that will be called once the object is instantiated and its dependencies have been injected.
Inject - Annotation Type in net.lecousin.framework.injection
This field should be injected.
inject(InjectionContext, Object) - Static method in class net.lecousin.framework.injection.Injection
Perform injection on the instance, by looking for fields having the Inject annotation.
Injectable - Annotation Type in net.lecousin.framework.injection
Specify the type for injection.
InjectableWhen - Annotation Type in net.lecousin.framework.injection
This annotation can be used to specify when the annotated class should be used for injection.
injectAttribute(InjectionContext, Object, ObjectAttribute) - Static method in class net.lecousin.framework.injection.Injection
Inject the given attribute in the instance.
Injection - Class in net.lecousin.framework.injection
Utility methods for injection.
InjectionContext - Class in net.lecousin.framework.injection
Injection context.
InjectionContext(InjectionContext) - Constructor for class net.lecousin.framework.injection.InjectionContext
Constructor.
InjectionContext() - Constructor for class net.lecousin.framework.injection.InjectionContext
Constructor.
InjectionException - Exception in net.lecousin.framework.injection
Injection error.
InjectionException(String) - Constructor for exception net.lecousin.framework.injection.InjectionException
Constructor.
InjectionException(String, Throwable) - Constructor for exception net.lecousin.framework.injection.InjectionException
Constructor.
InjectionSerializationRule - Class in net.lecousin.framework.injection
Serialization rule for dependencies injection: during serialization, injectable objects are not serialized (they will be injected again on deserialization).
InjectionSerializationRule(InjectionContext) - Constructor for class net.lecousin.framework.injection.InjectionSerializationRule
Constructor.
InjectionXmlConfiguration - Class in net.lecousin.framework.injection.xml
Utility class to configure an InjectionContext from an XML file.
InjectionXmlParser - Interface in net.lecousin.framework.injection.xml
Interface to parse XML stream and configure an InjectionContext.
InjectionXmlParser01 - Class in net.lecousin.framework.injection.xml
Parse for version 0.1.
InjectionXmlParser01() - Constructor for class net.lecousin.framework.injection.xml.InjectionXmlParser01
 
instance - Variable in class net.lecousin.framework.injection.Singleton
 
isEquivalent(SerializationRule) - Method in class net.lecousin.framework.injection.InjectionSerializationRule
 
isExplicitlyNull() - Method in class net.lecousin.framework.injection.ObjectValueFromString
 

K

keepAfterInit() - Method in class net.lecousin.framework.injection.Init
 

N

name - Variable in class net.lecousin.framework.injection.ObjectMethod
 
NAMESPACE_URI_0_1 - Static variable in class net.lecousin.framework.injection.xml.InjectionXmlConfiguration
 
net.lecousin.framework.injection - package net.lecousin.framework.injection
Dependency injection.
net.lecousin.framework.injection.xml - package net.lecousin.framework.injection.xml
Parsing injection configuration from XML.

O

ObjectAttribute - Class in net.lecousin.framework.injection
Configuration for injecting an object into an attribute.
ObjectAttribute(String, ObjectValue) - Constructor for class net.lecousin.framework.injection.ObjectAttribute
Contructor.
ObjectMethod - Class in net.lecousin.framework.injection
Represent a method with optional parameters to be called.
ObjectMethod(String, List<ObjectValue>) - Constructor for class net.lecousin.framework.injection.ObjectMethod
Constructor.
ObjectProvider - Class in net.lecousin.framework.injection
Provide objects for injection.
ObjectProvider(InjectionContext, Class<?>, String) - Constructor for class net.lecousin.framework.injection.ObjectProvider
Constructor.
ObjectValue - Interface in net.lecousin.framework.injection
Interface for an object value.
ObjectValueClass - Class in net.lecousin.framework.injection
Object value instantiating a given class.
ObjectValueClass(Class<?>, List<ObjectValue>, List<ObjectAttribute>) - Constructor for class net.lecousin.framework.injection.ObjectValueClass
Constructor.
ObjectValueFromSingletonAttribute - Class in net.lecousin.framework.injection
Object value taken from an attribute of an existing singleton.
ObjectValueFromSingletonAttribute(String) - Constructor for class net.lecousin.framework.injection.ObjectValueFromSingletonAttribute
Constructor.
ObjectValueFromSingletonAttributeById - Class in net.lecousin.framework.injection
Object value taken from an attribute of an existing singleton by ID.
ObjectValueFromSingletonAttributeById(String, String) - Constructor for class net.lecousin.framework.injection.ObjectValueFromSingletonAttributeById
Constructor.
ObjectValueFromSingletonAttributeByType - Class in net.lecousin.framework.injection
Object value taken from an attribute of an existing singleton by its type.
ObjectValueFromSingletonAttributeByType(String, Class<?>) - Constructor for class net.lecousin.framework.injection.ObjectValueFromSingletonAttributeByType
Constructor.
ObjectValueFromString - Class in net.lecousin.framework.injection
Object value created from a string, using Injection#createObjectFromString.
ObjectValueFromString(String) - Constructor for class net.lecousin.framework.injection.ObjectValueFromString
Constructor.
ObjectValueList - Class in net.lecousin.framework.injection
List of object values as an object value.
ObjectValueList(List<ObjectValue>) - Constructor for class net.lecousin.framework.injection.ObjectValueList
Constructor.
ObjectValueMap - Class in net.lecousin.framework.injection
Map of object values as an object value.
ObjectValueMap(List<ObjectAttribute>) - Constructor for class net.lecousin.framework.injection.ObjectValueMap
Constructor.
ObjectValueRefId - Class in net.lecousin.framework.injection
Reference to an object by its ID.
ObjectValueRefId(String) - Constructor for class net.lecousin.framework.injection.ObjectValueRefId
Constructor.
ObjectValueRefType - Class in net.lecousin.framework.injection
Reference to an object by its type.
ObjectValueRefType(Class<?>) - Constructor for class net.lecousin.framework.injection.ObjectValueRefType
Constructor.
onInstantiation(TypeDefinition, Object, SerializationContext) - Method in class net.lecousin.framework.injection.InjectionSerializationRule
 

P

parameters - Variable in class net.lecousin.framework.injection.ObjectMethod
 
provide() - Method in class net.lecousin.framework.injection.Factory
 
provide() - Method in class net.lecousin.framework.injection.ObjectProvider
Provide an object for injection.
provide() - Method in class net.lecousin.framework.injection.Singleton
 
provide() - Method in class net.lecousin.framework.injection.SingletonOnDemand
 
provider - Variable in class net.lecousin.framework.injection.SingletonOnDemand
 

R

readObjectAttribute(InjectionContext, XMLStreamReader, Application) - Static method in class net.lecousin.framework.injection.xml.InjectionXmlParser01
Read an attribute from the given XML which must be on the attribute element.
readObjectMethod(InjectionContext, XMLStreamReader, Application) - Static method in class net.lecousin.framework.injection.xml.InjectionXmlParser01
Read an object method from an XML stream.
readObjectValue(InjectionContext, XMLStreamReader, Application) - Static method in class net.lecousin.framework.injection.xml.InjectionXmlParser01
Read an ObjectValue from the given XML.
resolveProperties(InjectionContext, Application, String) - Static method in class net.lecousin.framework.injection.Injection
Resolve properties in the given value.
resolveProperties(InjectionContext, Application, CharSequence) - Static method in class net.lecousin.framework.injection.Injection
Resolve properties in the given value.

S

scanPackage(InjectionContext, Application, String, boolean) - Static method in class net.lecousin.framework.injection.Injection
Scan a package to find injectable objects.
searchObjectInChildren(String) - Method in class net.lecousin.framework.injection.InjectionContext
Search an object by ID in this context and its descendents.
setObject(String, Class<?>, Object, ObjectMethod) - Method in class net.lecousin.framework.injection.InjectionContext
Add a singleton by id, equivalent to call add(new Singleton(type, instance, id)).
setParent(InjectionContext) - Method in class net.lecousin.framework.injection.InjectionContext
Set the parent context, and add this context to the children of the given parent.
setProperty(String, String) - Method in class net.lecousin.framework.injection.InjectionContext
Set a property.
Singleton - Class in net.lecousin.framework.injection
Singleton to be injected.
Singleton(InjectionContext, Class<?>, Object, String, ObjectMethod) - Constructor for class net.lecousin.framework.injection.Singleton
Constructor.
SingletonOnDemand - Class in net.lecousin.framework.injection
Singleton to be injected.
SingletonOnDemand(InjectionContext, Class<?>, Provider<?>, String, ObjectMethod) - Constructor for class net.lecousin.framework.injection.SingletonOnDemand
Constructor.

T

type - Variable in class net.lecousin.framework.injection.ObjectProvider
 
A C D F G I K N O P R S T 
Skip navigation links

Copyright © 2018. All rights reserved.