|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.picocontainer.containers.ArgumentativePicoContainer
public class ArgumentativePicoContainer
| Constructor Summary | |
|---|---|
ArgumentativePicoContainer(String[] arguments)
|
|
ArgumentativePicoContainer(String separator,
String[] arguments)
|
|
ArgumentativePicoContainer(String separator,
StringReader argumentsProps)
|
|
ArgumentativePicoContainer(String separator,
StringReader argumentProperties,
String[] arguments)
|
|
| Method Summary | ||
|---|---|---|
void |
accept(PicoVisitor visitor)
Accepts a visitor that should visit the child containers, component adapters and component instances. |
|
|
getComponent(Class<T> componentType)
|
|
Object |
getComponent(Object componentKeyOrType)
Retrieve a component instance registered with a specific key or type. |
|
|
getComponentAdapter(Class<T> componentType,
ParameterName componentParameterName)
Find a component adapter associated with the specified type. |
|
ComponentAdapter<?> |
getComponentAdapter(Object componentKey)
Find a component adapter associated with the specified key. |
|
Collection<ComponentAdapter<?>> |
getComponentAdapters()
Retrieve all the component adapters inside this container. |
|
|
getComponentAdapters(Class<T> componentType)
Retrieve all component adapters inside this container that are associated with the specified type. |
|
List |
getComponents()
Retrieve all the registered component instances in the container, (not including those in the parent container). |
|
|
getComponents(Class<T> componentType)
Returns a List of components of a certain componentType. |
|
PicoContainer |
getParent()
Retrieve the parent container of this container. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArgumentativePicoContainer(String[] arguments)
public ArgumentativePicoContainer(String separator,
String[] arguments)
public ArgumentativePicoContainer(String separator,
StringReader argumentProperties,
String[] arguments)
throws IOException
IOException
public ArgumentativePicoContainer(String separator,
StringReader argumentsProps)
throws IOException
IOException| Method Detail |
|---|
public Object getComponent(Object componentKeyOrType)
PicoContainer
getComponent in interface PicoContainercomponentKeyOrType - the key or Type that the component was registered with.
null if no component has been registered for the specified
key.public <T> T getComponent(Class<T> componentType)
getComponent in interface PicoContainerpublic List getComponents()
PicoContainer
getComponents in interface PicoContainerpublic PicoContainer getParent()
PicoContainer
getParent in interface PicoContainerPicoContainer instance, or null if this container does not have a parent.public ComponentAdapter<?> getComponentAdapter(Object componentKey)
PicoContainer
getComponentAdapter in interface PicoContainercomponentKey - the key that the component was registered with.
null if no component has been
registered for the specified key.
public <T> ComponentAdapter<T> getComponentAdapter(Class<T> componentType,
ParameterName componentParameterName)
PicoContainer
getComponentAdapter in interface PicoContainercomponentType - the type of the component.
null if no component has been
registered for the specified key.public Collection<ComponentAdapter<?>> getComponentAdapters()
PicoContainer
getComponentAdapters in interface PicoContainerComponentAdapters inside this container. The collection will not
be modifiable.a variant of this method which returns the component adapters inside this
container that are associated with the specified type.public <T> List<ComponentAdapter<T>> getComponentAdapters(Class<T> componentType)
PicoContainer
getComponentAdapters in interface PicoContainercomponentType - the type of the components.
ComponentAdapters inside this container that are associated with
the specified type. Changes to this collection will not be reflected in the container itself.public <T> List<T> getComponents(Class<T> componentType)
PicoContainer
getComponents in interface PicoContainercomponentType - the searched type.
public void accept(PicoVisitor visitor)
PicoContainer
accept in interface PicoContainervisitor - the visitor
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||