|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vraptor.component.MethodParameter
public class MethodParameter
Defines an argument that a logic method receives.
| Constructor Summary | |
|---|---|
MethodParameter(Class<?> param,
Type generic,
int position,
String key)
|
|
| Method Summary | |
|---|---|
Type |
getGenericType()
|
String |
getKey()
The parameter key |
Class<? extends Converter> |
getOverridenConverter()
Returns the overriden converter class attached to this read parameter |
int |
getPosition()
|
Class<?> |
getType()
|
Object |
guaranteeExistence(Object component,
Object[] methodParams)
Guarantees it's existence by instantiating itself if needed (or oblied), connecting to the logic component and returning itself |
boolean |
mightCreate()
Should it instantiate required fields on the fly? |
Object |
newInstance()
|
void |
set(Object component,
Object[] methodParams,
Object value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MethodParameter(Class<?> param,
Type generic,
int position,
String key)
| Method Detail |
|---|
public String getKey()
ReadParameter
getKey in interface ReadParameterpublic Class<? extends Converter> getOverridenConverter()
ReadParameter
getOverridenConverter in interface ReadParameter
public Object guaranteeExistence(Object component,
Object[] methodParams)
throws SettingException
ReadParameter
guaranteeExistence in interface ReadParametercomponent - the logic component
SettingException - some problem during its creationpublic boolean mightCreate()
ReadParameter
mightCreate in interface ReadParameterpublic Class<?> getType()
getType in interface ReadParameter
public void set(Object component,
Object[] methodParams,
Object value)
throws SettingException
set in interface ReadParameterSettingExceptionpublic Type getGenericType()
getGenericType in interface ReadParameter
public Object newInstance()
throws ComponentInstantiationException
ComponentInstantiationExceptionpublic int getPosition()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||