📄 componentmanager.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -