|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Interface Summary | |
---|---|
ComponentAdapter | A component adapter is responsible for providing a specific component instance. |
ComponentMonitor | A component monitor is responsible for monitoring the component instantiation and method invocation. |
Disposable | An interface which is implemented by components that need to dispose of resources during the shutdown of that component. |
LifecycleManager | A manager for the lifecycle of a container's components. |
MutablePicoContainer | This is the core interface used for registration of components with a container. |
Parameter | This class provides control over the arguments that will be passed to a constructor. |
PicoContainer | This is the core interface for PicoContainer. |
PicoVisitor | Interface realizing a visitor pattern for PicoContainer as described in the GoF. |
Startable | An interface which is implemented by components that can be started and stopped. |
Exception Summary | |
---|---|
PicoException | Superclass for all Exceptions in PicoContainer. |
PicoInitializationException | Subclass of PicoException that is thrown when there is a problem initializing the container or some other
part of the PicoContainer api, for example, when a cyclic dependency between components occurs. |
PicoInstantiationException | Deprecated. since 1.2; it was actually not instantiated anywhere |
PicoIntrospectionException | Subclass of PicoException that is thrown when there is a problem creating, providing or locating a component
instance or a part of the PicoContainer API, for example, when a request for a component is ambiguous. |
PicoLifecycleException | |
PicoRegistrationException | Subclass of PicoException that is thrown when there is a problem registering a component with the container
or another part of the PicoContainer API, for example, when a request for a component is ambiguous. |
PicoVerificationException | Subclass of PicoException that is thrown when a PicoContainer hierarchy
cannot be verified. |
This package contains the core API for PicoContainer, a compact container for working with the dependency injection pattern.
When you use
PicoContainer for dependency injection, you create a new instance of MutablePicoContainer
,
register classes (and possibly
ComponentAdapter
s and component instances created through other means).
Object instances can then be accessed through the PicoContainer
interface. The container will create all
instances for you automatically, resolving their dependencies and order of instantiation. The default container implementation is
the DefaultPicoContainer
class.
An extensive user guide, a list of Frequently Asked Questions (FAQ) with answers and a lot more information is available from the PicoContainer website. You can also find various extensions, wrappers and utility libraries that are based on this core API there.
|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |