Package | Description |
---|---|
org.picocontainer.defaults |
This package contains the default implementation of the
PicoContainer
API. |
org.picocontainer.monitors |
Modifier and Type | Class and Description |
---|---|
class |
DelegatingComponentMonitor
A
monitor which delegates to another monitor. |
Modifier and Type | Field and Description |
---|---|
private ComponentMonitor |
MonitoringComponentAdapterFactory.componentMonitor |
private ComponentMonitor |
MonitoringComponentAdapter.componentMonitor |
private ComponentMonitor |
AbstractMonitoringLifecycleStrategy.componentMonitor |
private ComponentMonitor |
LifecycleVisitor.componentMonitor
Deprecated.
|
private ComponentMonitor |
DelegatingComponentMonitor.delegate |
Modifier and Type | Method and Description |
---|---|
ComponentMonitor |
MonitoringComponentAdapterFactory.currentMonitor()
Returns the monitor currently used
|
ComponentMonitor |
ComponentMonitorStrategy.currentMonitor()
Returns the monitor currently used
|
ComponentMonitor |
DecoratingComponentAdapter.currentMonitor()
Returns delegate's current monitor if the delegate supports
a component monitor strategy.
|
ComponentMonitor |
MonitoringComponentAdapter.currentMonitor()
Returns the monitor currently used
|
ComponentMonitor |
AbstractMonitoringLifecycleStrategy.currentMonitor() |
ComponentMonitor |
DefaultPicoContainer.currentMonitor()
Returns the first current monitor found in the ComponentAdapterFactory, the component adapters
and the child containers, if these support a ComponentMonitorStrategy.
|
ComponentMonitor |
DelegatingComponentMonitor.currentMonitor() |
Modifier and Type | Method and Description |
---|---|
void |
MonitoringComponentAdapterFactory.changeMonitor(ComponentMonitor monitor) |
void |
ComponentMonitorStrategy.changeMonitor(ComponentMonitor monitor)
Changes the component monitor used
|
void |
DecoratingComponentAdapter.changeMonitor(ComponentMonitor monitor)
Delegates change of monitor if the delegate supports
a component monitor strategy.
|
void |
MonitoringComponentAdapter.changeMonitor(ComponentMonitor monitor) |
void |
AbstractMonitoringLifecycleStrategy.changeMonitor(ComponentMonitor monitor) |
void |
DefaultComponentAdapterFactory.changeMonitor(ComponentMonitor monitor) |
void |
DefaultPicoContainer.changeMonitor(ComponentMonitor monitor)
Changes monitor in the ComponentAdapterFactory, the component adapters
and the child containers, if these support a ComponentMonitorStrategy.
|
void |
DelegatingComponentMonitor.changeMonitor(ComponentMonitor monitor)
If the delegate supports a
monitor strategy ,
this is used to changed the monitor while keeping the same delegate. |
private void |
DelegatingComponentMonitor.checkMonitor(ComponentMonitor monitor) |
Constructor and Description |
---|
AbstractComponentAdapter(java.lang.Object componentKey,
java.lang.Class componentImplementation,
ComponentMonitor monitor)
Constructs a new ComponentAdapter for the given key and implementation.
|
AbstractMonitoringLifecycleStrategy(ComponentMonitor monitor)
Construct a AbstractMonitoringLifecylceStrategy.
|
ConstructorInjectionComponentAdapter(java.lang.Object componentKey,
java.lang.Class componentImplementation,
Parameter[] parameters,
boolean allowNonPublicClasses,
ComponentMonitor monitor)
Creates a ConstructorInjectionComponentAdapter
|
ConstructorInjectionComponentAdapter(java.lang.Object componentKey,
java.lang.Class componentImplementation,
Parameter[] parameters,
boolean allowNonPublicClasses,
ComponentMonitor monitor,
LifecycleStrategy lifecycleStrategy)
Creates a ConstructorInjectionComponentAdapter
|
ConstructorInjectionComponentAdapterFactory(boolean allowNonPublicClasses,
ComponentMonitor monitor) |
ConstructorInjectionComponentAdapterFactory(boolean allowNonPublicClasses,
ComponentMonitor monitor,
LifecycleStrategy lifecycleStrategy) |
DefaultComponentAdapterFactory(ComponentMonitor monitor) |
DefaultComponentAdapterFactory(ComponentMonitor monitor,
LifecycleStrategy lifecycleStrategy) |
DefaultLifecycleStrategy(ComponentMonitor monitor) |
DefaultPicoContainer(ComponentMonitor monitor)
Creates a new container with the DefaultComponentAdapterFactory using a
custom ComponentMonitor
|
DefaultPicoContainer(ComponentMonitor monitor,
LifecycleStrategy lifecycleStrategy,
PicoContainer parent)
Creates a new container with the DefaultComponentAdapterFactory using a
custom ComponentMonitor and lifecycle strategy
|
DefaultPicoContainer(ComponentMonitor monitor,
PicoContainer parent)
Creates a new container with the DefaultComponentAdapterFactory using a
custom ComponentMonitor
|
DelegatingComponentMonitor(ComponentMonitor delegate)
Creates a DelegatingComponentMonitor with a given delegate
|
InstantiatingComponentAdapter(java.lang.Object componentKey,
java.lang.Class componentImplementation,
Parameter[] parameters,
boolean allowNonPublicClasses,
ComponentMonitor monitor)
Constructs a new ComponentAdapter for the given key and implementation.
|
InstantiatingComponentAdapter(java.lang.Object componentKey,
java.lang.Class componentImplementation,
Parameter[] parameters,
boolean allowNonPublicClasses,
ComponentMonitor monitor,
LifecycleStrategy lifecycleStrategy)
Constructs a new ComponentAdapter for the given key and implementation.
|
LifecycleVisitor(java.lang.reflect.Method method,
java.lang.Class ofType,
boolean visitInInstantiationOrder,
ComponentMonitor monitor)
Deprecated.
since 1.2 in favour of
LifecycleManager |
MonitoringComponentAdapter(ComponentMonitor monitor)
Constructs a MonitoringComponentAdapter with a custom monitor
|
MonitoringComponentAdapterFactory(ComponentMonitor monitor)
Constructs a MonitoringComponentAdapterFactory with a custom monitor
|
SetterInjectionComponentAdapter(java.lang.Object componentKey,
java.lang.Class componentImplementation,
Parameter[] parameters,
boolean allowNonPublicClasses,
ComponentMonitor monitor)
Constructs a SetterInjectionComponentAdapter
|
SetterInjectionComponentAdapter(java.lang.Object componentKey,
java.lang.Class componentImplementation,
Parameter[] parameters,
boolean allowNonPublicClasses,
ComponentMonitor monitor,
LifecycleStrategy lifecycleStrategy)
Constructs a SetterInjectionComponentAdapter
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractComponentMonitor
An abstract
ComponentMonitor which supports all the message formats. |
class |
ConsoleComponentMonitor
A
ComponentMonitor which writes to a OutputStream . |
class |
DefaultComponentMonitor |
class |
LifecycleComponentMonitor
A
ComponentMonitor which collects lifecycle failures
and rethrows them on demand after the failures. |
class |
NullComponentMonitor
A
ComponentMonitor which does nothing. |
class |
WriterComponentMonitor
A
ComponentMonitor which writes to a Writer . |
Modifier and Type | Field and Description |
---|---|
private ComponentMonitor |
ConsoleComponentMonitor.delegate |
private ComponentMonitor |
LifecycleComponentMonitor.delegate |
private ComponentMonitor |
WriterComponentMonitor.delegate |
Constructor and Description |
---|
ConsoleComponentMonitor(java.io.OutputStream out,
ComponentMonitor delegate) |
LifecycleComponentMonitor(ComponentMonitor delegate) |
WriterComponentMonitor(java.io.Writer out,
ComponentMonitor delegate) |