Package org.apache.struts2.inject
package org.apache.struts2.inject
Guice (pronounced "juice"). A lightweight dependency injection
container. Features include:
- constructor, method, and field injection
- static method and field injection
- circular reference support (including constructors if you depend upon interfaces)
- high performance
- externalize what needs to be and no more
-
ClassDescriptionInjects dependencies into constructors, methods and fields annotated with
Inject
.Builds a dependency injectionContainer
.Implemented by classes which participate in building a container.Context of the current injection.Thrown when a dependency is misconfigured.A marking interface that will tell CI to initialise the bean when instating the whole objects' graphFactory<T>A custom factory.Beans marked with this interface will be always initialised after the internal DI mechanism will be created.Annotates members and parameters which should have their value[s] injected.Scope of an injected objects.Pluggable scoping strategy.Annotates a scoped implementation class.