Interface BeanValidatorComponentBuilderFactory.BeanValidatorComponentBuilder
- All Superinterfaces:
ComponentBuilder<org.apache.camel.component.bean.validator.BeanValidatorComponent>
- All Known Implementing Classes:
BeanValidatorComponentBuilderFactory.BeanValidatorComponentBuilderImpl
- Enclosing interface:
- BeanValidatorComponentBuilderFactory
public static interface BeanValidatorComponentBuilderFactory.BeanValidatorComponentBuilder
extends ComponentBuilder<org.apache.camel.component.bean.validator.BeanValidatorComponent>
Builder for the Bean Validator component.
-
Method Summary
Modifier and TypeMethodDescriptionautowiredEnabled
(boolean autowiredEnabled) Whether autowiring is enabled.constraintValidatorFactory
(jakarta.validation.ConstraintValidatorFactory constraintValidatorFactory) To use a custom ConstraintValidatorFactory.ignoreXmlConfiguration
(boolean ignoreXmlConfiguration) Whether to ignore data from the META-INF/validation.xml file.lazyStartProducer
(boolean lazyStartProducer) Whether the producer should be started lazy (on the first message).messageInterpolator
(jakarta.validation.MessageInterpolator messageInterpolator) To use a custom MessageInterpolator.traversableResolver
(jakarta.validation.TraversableResolver traversableResolver) To use a custom TraversableResolver.validationProviderResolver
(jakarta.validation.ValidationProviderResolver validationProviderResolver) To use a a custom ValidationProviderResolver.validatorFactory
(jakarta.validation.ValidatorFactory validatorFactory) To use a custom ValidatorFactory.Methods inherited from interface org.apache.camel.builder.component.ComponentBuilder
build, build, doSetProperty, register
-
Method Details
-
ignoreXmlConfiguration
default BeanValidatorComponentBuilderFactory.BeanValidatorComponentBuilder ignoreXmlConfiguration(boolean ignoreXmlConfiguration) Whether to ignore data from the META-INF/validation.xml file. The option is a: <code>boolean</code> type. Default: false Group: producer- Parameters:
ignoreXmlConfiguration
- the value to set- Returns:
- the dsl builder
-
lazyStartProducer
default BeanValidatorComponentBuilderFactory.BeanValidatorComponentBuilder lazyStartProducer(boolean lazyStartProducer) Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. The option is a: <code>boolean</code> type. Default: false Group: producer- Parameters:
lazyStartProducer
- the value to set- Returns:
- the dsl builder
-
autowiredEnabled
default BeanValidatorComponentBuilderFactory.BeanValidatorComponentBuilder autowiredEnabled(boolean autowiredEnabled) Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. The option is a: <code>boolean</code> type. Default: true Group: advanced- Parameters:
autowiredEnabled
- the value to set- Returns:
- the dsl builder
-
constraintValidatorFactory
default BeanValidatorComponentBuilderFactory.BeanValidatorComponentBuilder constraintValidatorFactory(jakarta.validation.ConstraintValidatorFactory constraintValidatorFactory) To use a custom ConstraintValidatorFactory. The option is a: <code>jakarta.validation.ConstraintValidatorFactory</code> type. Group: advanced- Parameters:
constraintValidatorFactory
- the value to set- Returns:
- the dsl builder
-
messageInterpolator
default BeanValidatorComponentBuilderFactory.BeanValidatorComponentBuilder messageInterpolator(jakarta.validation.MessageInterpolator messageInterpolator) To use a custom MessageInterpolator. The option is a: <code>jakarta.validation.MessageInterpolator</code> type. Group: advanced- Parameters:
messageInterpolator
- the value to set- Returns:
- the dsl builder
-
traversableResolver
default BeanValidatorComponentBuilderFactory.BeanValidatorComponentBuilder traversableResolver(jakarta.validation.TraversableResolver traversableResolver) To use a custom TraversableResolver. The option is a: <code>jakarta.validation.TraversableResolver</code> type. Group: advanced- Parameters:
traversableResolver
- the value to set- Returns:
- the dsl builder
-
validationProviderResolver
default BeanValidatorComponentBuilderFactory.BeanValidatorComponentBuilder validationProviderResolver(jakarta.validation.ValidationProviderResolver validationProviderResolver) To use a a custom ValidationProviderResolver. The option is a: <code>jakarta.validation.ValidationProviderResolver</code> type. Group: advanced- Parameters:
validationProviderResolver
- the value to set- Returns:
- the dsl builder
-
validatorFactory
default BeanValidatorComponentBuilderFactory.BeanValidatorComponentBuilder validatorFactory(jakarta.validation.ValidatorFactory validatorFactory) To use a custom ValidatorFactory. The option is a: <code>jakarta.validation.ValidatorFactory</code> type. Group: advanced- Parameters:
validatorFactory
- the value to set- Returns:
- the dsl builder
-