Package com.ericlam.mc.eldgui
Interface MVCInstallation
public interface MVCInstallation
ELDependenci-MVC 安裝器
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
MVCInstallation.QualifierFilter<A extends Annotation>
-
Method Summary
Modifier and TypeMethodDescription<T extends ComponentFactory<T>,
E extends T>
voidaddComponentFactory
(Class<T> factory, Class<E> implement) 新增自定義組件工廠void
addExceptionViewHandlers
(List<Class<? extends ExceptionViewHandler>> exceptionHandlers) 新增自定義異常處理器void
registerControllers
(Class<?>... controllers) 安裝 controllers (控制器)<A extends Annotation,
M extends MiddleWare<A>>
voidregisterMiddleWare
(Class<A> qualifier, Class<M> middleWareClass) <A extends Annotation>
voidregisterQualifier
(Class<A> qualifier, MVCInstallation.QualifierFilter<A> predicate) 安裝界面互動事件自定義過濾void
setGlobalExceptionHandler
(Class<? extends ExceptionViewHandler> exceptionHandler) 設置全局異常處理器void
setGlobalLoadingView
(Class<? extends LoadingView> loadingView) 設置全局異步加載界面
-
Method Details
-
registerQualifier
<A extends Annotation> void registerQualifier(Class<A> qualifier, MVCInstallation.QualifierFilter<A> predicate) 安裝界面互動事件自定義過濾- Type Parameters:
A
- 標注類- Parameters:
qualifier
- 指定的標注predicate
- 指定自定義過濾
-
registerMiddleWare
<A extends Annotation,M extends MiddleWare<A>> void registerMiddleWare(Class<A> qualifier, Class<M> middleWareClass) -
registerControllers
安裝 controllers (控制器)- Parameters:
controllers
- controllers
-
addExceptionViewHandlers
新增自定義異常處理器- Parameters:
exceptionHandlers
- 異常處理器
-
setGlobalExceptionHandler
設置全局異常處理器- Parameters:
exceptionHandler
- 異常處理器
-
setGlobalLoadingView
設置全局異步加載界面- Parameters:
loadingView
- 異步加載界面
-
addComponentFactory
<T extends ComponentFactory<T>,E extends T> void addComponentFactory(Class<T> factory, Class<E> implement) 新增自定義組件工廠- Type Parameters:
T
- 組件工廠類E
- 組件工廠實作類- Parameters:
factory
- 組件類,必須爲 interfaceimplement
- 組件實作類
-