⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 logicmethod.java

📁 pojo的mvc框架
💻 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 + -