|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vraptor.component.DefaultLogicMethod
public class DefaultLogicMethod
Represents a logic method.
| Constructor Summary | |
|---|---|
DefaultLogicMethod(ValidationErrorsFactory factory,
String name,
Method method,
Method validateMethod,
List<MethodParameter> parameters)
Constructs it based on the logics name and method |
|
| 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()
|
void |
setComponentType(ComponentType componentType)
|
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 |
|---|
public DefaultLogicMethod(ValidationErrorsFactory factory,
String name,
Method method,
Method validateMethod,
List<MethodParameter> parameters)
| 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 happenned
public ValidationErrors validate(Object component,
LogicRequest context,
ResourceBundle bundle,
Object[] params)
throws UnstableValidationException
LogicMethod
validate in interface LogicMethodparams - method parameters
UnstableValidationExceptionpublic boolean shouldRedirect()
LogicMethod
shouldRedirect in interface LogicMethodpublic Method getMetadata()
getMetadata in interface LogicMethodpublic List<MethodParameter> getParameters()
getParameters in interface LogicMethodpublic ComponentType getComponentType()
getComponentType in interface LogicMethodpublic void setComponentType(ComponentType componentType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||