componentmanager.java

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

JAVA
52
字号
package xyz.frame.component;import java.util.Set;import xyz.frame.LogicRequest;/** * Component managers are capable of finding and dealing with business * components/logics. *  * @author Guilherme Silveira */public interface ComponentManager {	/**	 * Registers a new component	 * 	 * @param clazz	 *            component class	 * @throws InvalidComponentException	 *             invalid component	 */	public void register(Class clazz) throws InvalidComponentException;	/**	 * Returns the business component	 * 	 * @param logicRequest	 *            business name	 * @throws InvalidComponentException	 *             if there is no component with this name	 */	public ComponentType getComponent(LogicRequest logicRequest)			throws ComponentNotFoundException;	/**	 * Returns a list with all component classes.	 * 	 * @return all components registered	 */	public Set<ComponentType> getComponents();	/**	 * Directly registers a component type.	 * 	 * @param type	 *            the component type	 */	public void register(ComponentType type);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?