Package org.picocontainer.injectors
InjectionFactories make Injectors which implement specific types of dependency injection
-
Interface Summary Interface Description Provider Providers are a type of Injector that can participate in Injection via a custom method. -
Class Summary Class Description AbstractFieldInjector<T> AbstractInjectionFactory AbstractInjector<T> This ComponentAdapter will instantiate a new object for each call toComponentAdapter.getComponentInstance(PicoContainer, Type)
.AdaptingInjection Creates injector instances, depending on the injection characteristics of the component class.AnnotatedFieldInjection AInjectionFactory
for Guice-style annotated fields.AnnotatedFieldInjector<T> Injection happens after instantiation, and through fields marked as injection points via an Annotation.AnnotatedMethodInjection AInjectionFactory
for Guice-style annotated methods.AnnotatedMethodInjector CompositeInjection A Composite of other types on InjectionFactories - pass them into the varargs constructor.CompositeInjector<T> ConstructorInjection AInjectionFactory
for constructor injection.ConstructorInjector<T> Injection will happen through a constructor for the component.FactoryInjector<T> An Injector which provides an custom instance in a factory styleFactoryInjector.CantWorkItOut ForgetfulConstructorInjection Constructor Injection where 'which constructor?' is re-calculated each time an instance is asked to construct a component.InjectInto Injector convenience class providing static methods to conveniently create injectors ( like org.junit.Assert )Injectors IterativeInjector<T> Injection will happen iteratively after component instantiationMethodInjection AInjectionFactory
for methods.MethodInjector<T> Injection will happen through a single method for the component.MethodInjector.ByMethodName MethodInjector.ByReflectionMethod MultiInjection MultiInjector NamedFieldInjection AInjectionFactory
for named fields.NamedFieldInjector<T> Injection happens after instantiation, and fields are marked as injection points via a named field.NamedMethodInjection NamedMethodInjector<T> ParameterNameBinding PrimitiveMemberChecker ProviderAdapter Providers are a type of Injector that can participate in Injection via a custom method.Reinjection Reinjector A Reinjector allows methods on pre-instantiated classes to be invoked, with appropriately scoped parameters.SetterInjection AInjectionFactory
for JavaBeans.SetterInjector<T> Instantiates components using empty constructors and Setter Injection.SingleMemberInjector<T> Injection will happen in a single member function on the component.TypedFieldInjection AInjectionFactory
for named fields.TypedFieldInjector<T> Injection happens after instantiation, and fields are marked as injection points via a field type. -
Exception Summary Exception Description AbstractInjector.AmbiguousComponentResolutionException Exception that is thrown as part of the introspection.AbstractInjector.CyclicDependencyException AbstractInjector.NotConcreteRegistrationException AbstractInjector.UnsatisfiableDependenciesException Exception thrown when some of the component's dependencies are not satisfiable.SingleMemberInjector.ParameterCannotBeNullException