Interface DozerEndpointBuilderFactory.DozerEndpointBuilder

  • All Superinterfaces:
    org.apache.camel.builder.EndpointProducerBuilder, org.apache.camel.EndpointProducerResolver
    Enclosing interface:
    DozerEndpointBuilderFactory

    public static interface DozerEndpointBuilderFactory.DozerEndpointBuilder
    extends org.apache.camel.builder.EndpointProducerBuilder
    Builder for endpoint for the Dozer component.
    • Method Detail

      • lazyStartProducer

        default DozerEndpointBuilderFactory.DozerEndpointBuilder 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
      • lazyStartProducer

        default DozerEndpointBuilderFactory.DozerEndpointBuilder lazyStartProducer​(String 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 will be converted to a <code>boolean</code> type. Default: false Group: producer
        Parameters:
        lazyStartProducer - the value to set
        Returns:
        the dsl builder
      • mappingConfiguration

        default DozerEndpointBuilderFactory.DozerEndpointBuilder mappingConfiguration​(Object mappingConfiguration)
        The name of a DozerBeanMapperConfiguration bean in the Camel registry which should be used for configuring the Dozer mapping. This is an alternative to the mappingFile option that can be used for fine-grained control over how Dozer is configured. Remember to use a # prefix in the value to indicate that the bean is in the Camel registry (e.g. #myDozerConfig). The option is a: <code>org.apache.camel.converter.dozer.DozerBeanMapperConfiguration</code> type. Group: producer
        Parameters:
        mappingConfiguration - the value to set
        Returns:
        the dsl builder
      • mappingConfiguration

        default DozerEndpointBuilderFactory.DozerEndpointBuilder mappingConfiguration​(String mappingConfiguration)
        The name of a DozerBeanMapperConfiguration bean in the Camel registry which should be used for configuring the Dozer mapping. This is an alternative to the mappingFile option that can be used for fine-grained control over how Dozer is configured. Remember to use a # prefix in the value to indicate that the bean is in the Camel registry (e.g. #myDozerConfig). The option will be converted to a <code>org.apache.camel.converter.dozer.DozerBeanMapperConfiguration</code> type. Group: producer
        Parameters:
        mappingConfiguration - the value to set
        Returns:
        the dsl builder
      • mappingFile

        default DozerEndpointBuilderFactory.DozerEndpointBuilder mappingFile​(String mappingFile)
        The location of a Dozer configuration file. The file is loaded from the classpath by default, but you can use file:, classpath:, or http: to load the configuration from a specific location. The option is a: <code>java.lang.String</code> type. Default: dozerBeanMapping.xml Group: producer
        Parameters:
        mappingFile - the value to set
        Returns:
        the dsl builder
      • marshalId

        default DozerEndpointBuilderFactory.DozerEndpointBuilder marshalId​(String marshalId)
        The id of a dataFormat defined within the Camel Context to use for marshalling the mapping output to a non-Java type. The option is a: <code>java.lang.String</code> type. Group: producer
        Parameters:
        marshalId - the value to set
        Returns:
        the dsl builder
      • sourceModel

        default DozerEndpointBuilderFactory.DozerEndpointBuilder sourceModel​(String sourceModel)
        Fully-qualified class name for the source type used in the mapping. If specified, the input to the mapping is converted to the specified type before being mapped with Dozer. The option is a: <code>java.lang.String</code> type. Group: producer
        Parameters:
        sourceModel - the value to set
        Returns:
        the dsl builder
      • targetModel

        default DozerEndpointBuilderFactory.DozerEndpointBuilder targetModel​(String targetModel)
        Fully-qualified class name for the target type used in the mapping. The option is a: <code>java.lang.String</code> type. Required: true Group: producer
        Parameters:
        targetModel - the value to set
        Returns:
        the dsl builder
      • unmarshalId

        default DozerEndpointBuilderFactory.DozerEndpointBuilder unmarshalId​(String unmarshalId)
        The id of a dataFormat defined within the Camel Context to use for unmarshalling the mapping input from a non-Java type. The option is a: <code>java.lang.String</code> type. Group: producer
        Parameters:
        unmarshalId - the value to set
        Returns:
        the dsl builder