logicmethod.java

来自「pojo的mvc框架」· Java 代码 · 共 53 行

JAVA
53
字号
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 + =
减小字号Ctrl + -
显示快捷键?