Class BarSkeletonSetting
java.lang.Object
com.iohao.net.framework.core.BarSkeletonSetting
Configuration settings for the business framework skeleton (
BarSkeleton).
Controls action routing dimensions, logging flags, validation, and pluggable
components such as the flow context factory and flow executor.- Author:
- 渔民小镇
- date:
- 2021-12-20
-
Field Summary
FieldsModifier and TypeFieldDescriptionStrategy forCmdInfoflyweight caching.intThe default length of actions (level 1 command; main route)Strategy for generating developer-facing code suggestions on errors.Factory for creatinginstances per request.invalid reference
FlowContextExecutor responsible for running the flow pipeline.booleanSet to true to enable documentation parsingbooleanSet to false to disable printingbooleanSet to true for action log printingbooleanSet to false for short name printing in action logs (class, parameter names, return values)booleanSet to true for codec log printingbooleanSet to true for inout log printingbooleanSet to true for runners log printingintThe default length of sub-actions (level 2 sub-command; sub-route)booleanSet to true to enable JSR380 validation for business parameters.booleanWhether to automatically invoke validation on action parameters. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
cmdMaxLen
public int cmdMaxLenThe default length of actions (level 1 command; main route) -
subCmdMaxLen
public int subCmdMaxLenThe default length of sub-actions (level 2 sub-command; sub-route) -
print
public boolean printSet to false to disable printing -
printAction
public boolean printActionSet to true for action log printing -
printActionShort
public boolean printActionShortSet to false for short name printing in action logs (class, parameter names, return values) -
printInout
public boolean printInoutSet to true for inout log printing -
printDataCodec
public boolean printDataCodecSet to true for codec log printing -
printRunners
public boolean printRunnersSet to true for runners log printing -
validator
public boolean validatorSet to true to enable JSR380 validation for business parameters.
For more information on enabling JSR380 validation, refer to this document: Documentation - JSR380
You will need to include the following dependencies in your project's pom.xml:
<!-- hibernate validator --> <dependency> <groupId>org.hibernate.validator</groupId> <artifactId>hibernate-validator</artifactId> <version>9.0.1.Final</version> </dependency> <!-- EL implementation. In a Java SE environment, you must add the implementation as a dependency to your POM file --> <dependency> <groupId>org.glassfish</groupId> <artifactId>jakarta.el</artifactId> <version>4.0.2</version> </dependency> <!-- jakarta --> <dependency> <groupId>jakarta.validation</groupId> <artifactId>jakarta.validation-api</artifactId> <version>${jakarta.validation-api.version}</version> </dependency> -
validatorAutoCall
public boolean validatorAutoCallWhether to automatically invoke validation on action parameters. -
parseDoc
public boolean parseDocSet to true to enable documentation parsing -
flowContextFactory
Factory for creatinginstances per request.invalid reference
FlowContext -
flowExecutor
Executor responsible for running the flow pipeline. -
codeSuggest
Strategy for generating developer-facing code suggestions on errors. -
cmdInfoFlyweightStrategy
Strategy forCmdInfoflyweight caching.
-
-
Constructor Details
-
BarSkeletonSetting
public BarSkeletonSetting()
-