| org.picocontainer.PicoContainer
All known Subclasses: org.picocontainer.containers.EmptyPicoContainer, org.picocontainer.containers.AbstractDelegatingPicoContainer, org.picocontainer.containers.ImmutablePicoContainer,
accept | void accept(PicoVisitor visitor)(Code) | | Accepts a visitor that should visit the child containers, component adapters and component instances.
Parameters: visitor - the visitor |
getComponent | Object getComponent(Object componentKeyOrType)(Code) | | Retrieve a component instance registered with a specific key or type. If a component cannot be found in this container,
the parent container (if one exists) will be searched.
Parameters: componentKeyOrType - the key or Type that the component was registered with. an instantiated component, or null if no component has been registered for the specifiedkey. |
getComponent | T getComponent(Class<T> componentType)(Code) | | Retrieve a component keyed by the component type.
< Parameters: T - > the type of the component. Parameters: componentType - the type of the component the typed resulting object instance or null if the object does not exist. |
getComponentAdapter | ComponentAdapter> getComponentAdapter(Object componentKey)(Code) | | Find a component adapter associated with the specified key. If a component adapter cannot be found in this
container, the parent container (if one exists) will be searched.
Parameters: componentKey - the key that the component was registered with. the component adapter associated with this key, or null if no component has beenregistered for the specified key. |
getComponentAdapter | ComponentAdapter<T> getComponentAdapter(Class<T> componentType, NameBinding componentNameBinding)(Code) | | Find a component adapter associated with the specified type. If a component adapter cannot be found in this
container, the parent container (if one exists) will be searched.
Parameters: componentType - the type of the component. the component adapter associated with this class, or null if no component has beenregistered for the specified key. Parameters: componentNameBinding - |
getComponentAdapters | Collection<ComponentAdapter<?>> getComponentAdapters()(Code) | | Retrieve all the component adapters inside this container. The component adapters from the parent container are
not returned.
a collection containing all the ComponentAdapters inside this container. The collection will notbe modifiable. See Also: PicoContainer.getComponentAdapters(Class) See Also: a variant of this method which returns the component adapters inside this See Also: container that are associated with the specified type. |
getComponentAdapters | List<ComponentAdapter<T>> getComponentAdapters(Class<T> componentType)(Code) | | Retrieve all component adapters inside this container that are associated with the specified type. The addComponent
adapters from the parent container are not returned.
Parameters: componentType - the type of the components. a collection containing all the ComponentAdapters inside this container that are associated withthe specified type. Changes to this collection will not be reflected in the container itself. |
getComponents | List<Object> getComponents()(Code) | | Retrieve all the registered component instances in the container, (not including those in the parent container).
The components are returned in their order of instantiation, which depends on the dependency order between them.
all the components. throws: PicoException - if the instantiation of the component fails |
getComponents | List<T> getComponents(Class<T> componentType)(Code) | | Returns a List of components of a certain componentType. The list is ordered by instantiation order, starting
with the components instantiated first at the beginning.
Parameters: componentType - the searched type. a List of components. throws: PicoException - if the instantiation of a component fails |
getParent | PicoContainer getParent()(Code) | | Retrieve the parent container of this container.
a PicoContainer instance, or null if this container does not have a parent. |
|
|