Package | Description |
---|---|
org.picocontainer |
This package contains the core API for PicoContainer, a compact container for working with the
dependency injection pattern.
|
org.picocontainer.adapters | |
org.picocontainer.injectors |
InjectionFactories make Injectors which implement specific types of dependency injection
|
org.picocontainer.monitors |
A Monitor is something PicoContainer uses to inform on events in component instantiation and lifecycle.
|
Modifier and Type | Method and Description |
---|---|
Injector |
ComponentMonitor.newInjector(Injector injector)
A mechanism to monitor or override the Injectors being made for components.
|
Modifier and Type | Method and Description |
---|---|
Injector |
ComponentMonitor.newInjector(Injector injector)
A mechanism to monitor or override the Injectors being made for components.
|
Modifier and Type | Class and Description |
---|---|
static class |
SimpleNamedBindingAnnotationTestCase.FieldInjector<T> |
Modifier and Type | Class and Description |
---|---|
class |
AbstractFieldInjector<T> |
class |
AbstractInjector<T>
This ComponentAdapter will instantiate a new object for each call to
ComponentAdapter.getComponentInstance(PicoContainer, Type) . |
class |
AnnotatedFieldInjector<T>
Injection happens after instantiation, and through fields marked as injection points via an Annotation.
|
class |
AnnotatedMethodInjector |
class |
CompositeInjector<T> |
class |
ConstructorInjector<T>
Injection will happen through a constructor for the component.
|
class |
FactoryInjector<T>
An Injector which provides an custom instance in a factory style
|
static class |
FactoryInjectorTestCase.BrendansLoggerInjector |
static class |
IntoTypeTestCase.AliceFactory |
class |
IterativeInjector<T>
Injection will happen iteratively after component instantiation
|
class |
MethodInjector<T>
Injection will happen through a single method for the component.
|
static class |
MethodInjector.ByMethodName |
static class |
MethodInjector.ByReflectionMethod |
class |
MultiInjector |
class |
NamedFieldInjector<T>
Injection happens after instantiation, and fields are marked as
injection points via a named field.
|
class |
NamedMethodInjector<T> |
class |
ProviderAdapter
Providers are a type of Injector that can participate in Injection via a custom method.
|
static class |
ProviderTestCase.Chocolatier |
static class |
ProviderTestCase.ExampleRequestReader |
static class |
ProviderTestCase.NullableChocolatier |
static class |
ProviderTestCase.ProviderWithBadProvideMethod |
static class |
ProviderTestCase.ProviderWithoutProvideMethod |
static class |
ProviderTestCase.ProviderWithTooManyProvideMethods |
class |
SetterInjector<T>
Instantiates components using empty constructors and
Setter Injection.
|
class |
SingleMemberInjector<T>
Injection will happen in a single member function on the component.
|
class |
TypedFieldInjector<T>
Injection happens after instantiation, and fields are marked as
injection points via a field type.
|
Modifier and Type | Method and Description |
---|---|
static ComponentAdapter |
Injector.composite(Object componentKey,
Class<?> componentImplementation,
Parameter[] parameters,
ComponentMonitor monitor,
boolean useNames,
Injector... injectors)
creates composite injector
|
protected ComponentAdapter |
AbstractInjectionFactory.wrapLifeCycle(Injector injector,
LifecycleStrategy lifecycleStrategy) |
Constructor and Description |
---|
CompositeInjector(Object componentKey,
Class<?> componentImplementation,
Parameter[] parameters,
ComponentMonitor monitor,
boolean useNames,
Injector... injectors) |
Modifier and Type | Method and Description |
---|---|
Injector |
AbstractComponentMonitor.newInjector(Injector injector) |
Injector |
ConsoleComponentMonitor.newInjector(Injector injector) |
Injector |
WriterComponentMonitor.newInjector(Injector injector) |
Injector |
LifecycleComponentMonitor.newInjector(Injector injector) |
Injector |
NullComponentMonitor.newInjector(Injector injector) |
Modifier and Type | Method and Description |
---|---|
Injector |
AbstractComponentMonitor.newInjector(Injector injector) |
Injector |
ConsoleComponentMonitor.newInjector(Injector injector) |
Injector |
WriterComponentMonitor.newInjector(Injector injector) |
Injector |
LifecycleComponentMonitor.newInjector(Injector injector) |
Injector |
NullComponentMonitor.newInjector(Injector injector) |
Copyright © 2003–2016 Codehaus. All rights reserved.