public class CommandLinePicoContainer extends AbstractDelegatingPicoContainer
Constructor and Description |
---|
CommandLinePicoContainer(String[] arguments) |
CommandLinePicoContainer(String[] arguments,
PicoContainer parent) |
CommandLinePicoContainer(String separator,
String[] arguments) |
CommandLinePicoContainer(String separator,
String[] arguments,
PicoContainer parent) |
CommandLinePicoContainer(String separator,
StringReader argumentsProps) |
CommandLinePicoContainer(String separator,
StringReader argumentProperties,
String[] arguments) |
CommandLinePicoContainer(String separator,
StringReader argumentProperties,
String[] arguments,
PicoContainer parent) |
Modifier and Type | Method and Description |
---|---|
<T> T |
getComponent(Class<T> componentType)
Retrieve a component keyed by the component type.
|
<T> List<ComponentAdapter<T>> |
getComponentAdapters(Class<T> componentType)
Retrieve all component adapters inside this container that are associated with the specified type.
|
MutablePicoContainer |
getDelegate() |
PicoContainer |
getParent()
Retrieve the parent container of this container.
|
void |
setName(String s) |
String |
toString() |
accept, equals, getComponent, getComponent, getComponent, getComponentAdapter, getComponentAdapter, getComponentAdapter, getComponentAdapters, getComponentAdapters, getComponents, getComponents, getConverters
public CommandLinePicoContainer(String separator, String[] arguments)
public CommandLinePicoContainer(String separator, String[] arguments, PicoContainer parent)
public CommandLinePicoContainer(String separator, StringReader argumentsProps) throws IOException
IOException
public CommandLinePicoContainer(String separator, StringReader argumentProperties, String[] arguments) throws IOException
IOException
public CommandLinePicoContainer(String separator, StringReader argumentProperties, String[] arguments, PicoContainer parent) throws IOException
IOException
public CommandLinePicoContainer(String[] arguments)
public CommandLinePicoContainer(String[] arguments, PicoContainer parent)
public <T> T getComponent(Class<T> componentType)
PicoContainer
getComponent
in interface PicoContainer
getComponent
in class AbstractDelegatingPicoContainer
componentType
- the type of the componentpublic <T> List<ComponentAdapter<T>> getComponentAdapters(Class<T> componentType)
PicoContainer
getComponentAdapters
in interface PicoContainer
getComponentAdapters
in class AbstractDelegatingPicoContainer
componentType
- the type of the components.ComponentAdapter
s inside this container that are associated with
the specified type. Changes to this collection will not be reflected in the container itself.public PicoContainer getParent()
PicoContainer
getParent
in interface PicoContainer
getParent
in class AbstractDelegatingPicoContainer
PicoContainer
instance, or null
if this container does not have a parent.public MutablePicoContainer getDelegate()
getDelegate
in class AbstractDelegatingPicoContainer
public String toString()
toString
in class AbstractDelegatingPicoContainer
Copyright © 2003–2015 Codehaus. All rights reserved.