Package org.picocontainer.monitors
Class ComposingMonitor
java.lang.Object
org.picocontainer.monitors.AbstractComponentMonitor
org.picocontainer.monitors.ComposingMonitor
- All Implemented Interfaces:
Serializable
,ComponentMonitor
,ComponentMonitorStrategy
The first of a list of composers passed in that responds with an instance for a missing component will
be used.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
A Composer can be used to make components that are otherwise missing. -
Field Summary
Fields inherited from interface org.picocontainer.ComponentMonitor
KEEP
-
Constructor Summary
ConstructorsConstructorDescriptionComposingMonitor
(ComponentMonitor delegate, ComposingMonitor.Composer... composers) ComposingMonitor
(ComposingMonitor.Composer... composers) -
Method Summary
Modifier and TypeMethodDescriptionnoComponentFound
(MutablePicoContainer container, Object componentKey) No Component has been found for the key in question.Methods inherited from class org.picocontainer.monitors.AbstractComponentMonitor
changeMonitor, currentMonitor, instantiated, instantiating, instantiationFailed, invocationFailed, invoked, invoking, lifecycleInvocationFailed, newBehavior, newInjector
-
Constructor Details
-
ComposingMonitor
-
ComposingMonitor
-
-
Method Details
-
noComponentFound
Description copied from interface:ComponentMonitor
No Component has been found for the key in question. Implementers of this have a last chance opportunity to specify something for the need. This is only relevant to component dependencies, and not to container.getComponent() in your user code. - Specified by:
noComponentFound
in interfaceComponentMonitor
- Overrides:
noComponentFound
in classAbstractComponentMonitor
- Parameters:
container
-componentKey
-
-