Class BarSkeletonBuilder
java.lang.Object
com.iohao.net.framework.core.BarSkeletonBuilder
Builder for constructing a
BarSkeleton instance. Configures action controllers,
interceptors, flow executors, and other components.- Author:
- 渔民小镇
- date:
- 2021-12-12
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddActionController(@NonNull Class<?> actionControllerClass) Register an action controller class to be scanned for@ActionMethodroutes.voidaddActionParserListener(@NonNull ActionParserListener listener) Add a listener that is notified when action commands are parsed.addBroadcastDocument(@NonNull BroadcastDocumentBuilder builder) Add a broadcast document definition for documentation generation.voidaddInOut(@NonNull ActionMethodInOut inOut) Add an interceptor to the action method processing pipeline.voidAdd a runner to be executed during server startup.build()Build and return a fully configuredBarSkeletoninstance.voidscanActionPackage(@NonNull Class<?> actionControllerClass) Scan the package of the given class for@ActionControllerannotated classes.voidsetActionAfter(ActionAfter actionAfter) voidsetActionCommandParser(ActionCommandParser actionCommandParser) voidsetActionFactoryBean(ActionFactoryBean<Object> actionFactoryBean) voidsetActionMethodExceptionProcess(ActionMethodExceptionProcess actionMethodExceptionProcess) voidsetActionMethodInvoke(ActionMethodInvoke actionMethodInvoke) voidsetExecutorRegion(ExecutorRegion executorRegion) voidsetFlowContextFactory(FlowContextFactory flowContextFactory) voidsetFlowExecutor(FlowExecutor flowExecutor)
-
Method Details
-
build
Build and return a fully configuredBarSkeletoninstance.- Returns:
- a new
BarSkeletonconfigured with the settings from this builder
-
scanActionPackage
Scan the package of the given class for@ActionControllerannotated classes. Scans the package and all sub-packages of the specified class.- Parameters:
actionControllerClass- a class whose package will be scanned for action controllers
-
addActionController
Register an action controller class to be scanned for@ActionMethodroutes.- Parameters:
actionControllerClass- the action controller class to register
-
addBroadcastDocument
Add a broadcast document definition for documentation generation.- Parameters:
builder- the broadcast document builder- Returns:
- this builder for chaining
-
addInOut
Add an interceptor to the action method processing pipeline.- Parameters:
inOut- the interceptor to add
-
addRunner
Add a runner to be executed during server startup.- Parameters:
runner- the runner to add
-
addActionParserListener
Add a listener that is notified when action commands are parsed.- Parameters:
listener- the action parser listener to add
-
setFlowExecutor
-
setActionFactoryBean
-
setActionAfter
-
setActionMethodExceptionProcess
public void setActionMethodExceptionProcess(ActionMethodExceptionProcess actionMethodExceptionProcess) -
setActionMethodInvoke
-
setFlowContextFactory
-
setExecutorRegion
-
setActionCommandParser
-