|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectledge.pico.StringParameter
public class StringParameter
A parameter that is intialized with a string, and is converted to the desired type on demand.
Created on Jan 8, 2004
| Field Summary | |
|---|---|
private Class |
parameterType
the parmeter class |
private String |
stringValue
the string representation of the value |
| Constructor Summary | |
|---|---|
StringParameter(String stringValue)
Creates a new StringParamter instance. |
|
StringParameter(String stringValue,
Class parameterType)
Creates a new StringParamter instance. |
|
| Method Summary | |
|---|---|
void |
accept(org.picocontainer.PicoVisitor visitor)
|
private boolean |
checkPrimitive(Class expectedType)
|
boolean |
isResolvable(org.picocontainer.PicoContainer container,
org.picocontainer.ComponentAdapter adapter,
Class expectedType)
|
Object |
resolveInstance(org.picocontainer.PicoContainer container,
org.picocontainer.ComponentAdapter adapter,
Class expectedType)
|
void |
verify(org.picocontainer.PicoContainer container,
org.picocontainer.ComponentAdapter adapter,
Class expectedType)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private String stringValue
private Class parameterType
| Constructor Detail |
|---|
public StringParameter(String stringValue,
Class parameterType)
stringValue - the textual value of the component.parameterType - the class of the parameter, or null to
determine dynamically.public StringParameter(String stringValue)
stringValue - the textual value of the component.| Method Detail |
|---|
public Object resolveInstance(org.picocontainer.PicoContainer container,
org.picocontainer.ComponentAdapter adapter,
Class expectedType)
throws org.picocontainer.PicoInitializationException
resolveInstance in interface org.picocontainer.Parameterorg.picocontainer.PicoInitializationException
public boolean isResolvable(org.picocontainer.PicoContainer container,
org.picocontainer.ComponentAdapter adapter,
Class expectedType)
isResolvable in interface org.picocontainer.Parameter
public void verify(org.picocontainer.PicoContainer container,
org.picocontainer.ComponentAdapter adapter,
Class expectedType)
throws org.picocontainer.PicoIntrospectionException
verify in interface org.picocontainer.Parameterorg.picocontainer.PicoIntrospectionExceptionprivate boolean checkPrimitive(Class expectedType)
public void accept(org.picocontainer.PicoVisitor visitor)
accept in interface org.picocontainer.Parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||