|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vraptor.plugin.LogicMethodWrapper
public class LogicMethodWrapper
| Constructor Summary | |
|---|---|
protected |
LogicMethodWrapper(LogicMethod logic)
|
| Method Summary | |
|---|---|
String |
execute(Object component,
LogicRequest context,
Object[] params)
Executes the logic by invoking the method |
ComponentType |
getComponentType()
|
Method |
getMetadata()
|
String |
getName()
Returns the logic's name |
List<MethodParameter> |
getParameters()
|
protected LogicMethod |
getWrappedMethod()
|
boolean |
shouldRedirect()
Should execute a redirect after business logic execution. |
ValidationErrors |
validate(Object component,
LogicRequest context,
ResourceBundle bundle,
Object[] params)
Validates this logic. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected LogicMethodWrapper(LogicMethod logic)
| Method Detail |
|---|
public String getName()
LogicMethod
getName in interface LogicMethod
public String execute(Object component,
LogicRequest context,
Object[] params)
throws LogicException
LogicMethod
execute in interface LogicMethodcomponent - the component to invoke the method on
LogicException - something wrong happennedpublic boolean shouldRedirect()
LogicMethod
shouldRedirect in interface LogicMethod
public ValidationErrors validate(Object component,
LogicRequest context,
ResourceBundle bundle,
Object[] params)
throws UnstableValidationException
LogicMethod
validate in interface LogicMethodparams - method parameters
UnstableValidationExceptionpublic Method getMetadata()
getMetadata in interface LogicMethodprotected LogicMethod getWrappedMethod()
public List<MethodParameter> getParameters()
getParameters in interface LogicMethodpublic ComponentType getComponentType()
getComponentType in interface LogicMethod
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||