📄 logicmethod.java
字号:
package xyz.frame.component;import xyz.frame.LogicException;import xyz.frame.LogicRequest;import xyz.frame.validator.UnstableValidationException;import xyz.frame.validator.ValidationErrors;/** * A business logic method.. * * @author Guilherme Silveira */public interface LogicMethod { /** * Returns the logic's name * * @return its name */ String getName(); /** * Executes the logic by invoking the method * * @param component * the component to invoke the method on * @param context * @return the method's result * @throws LogicException * something wrong happenned */ String execute(Object component, LogicRequest context) throws LogicException; /** * Should execute a redirect after business logic execution. * * @return true if redirection should be done */ boolean shouldRedirect(); /** * Validates this logic. * * @param component * @param context * @return the errors * @throws UnstableValidationException */ public ValidationErrors validate(Object component, LogicRequest context) throws UnstableValidationException;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -