Interface ClassEndpointBuilderFactory.ClassEndpointBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder
,org.apache.camel.EndpointProducerResolver
- Enclosing interface:
- ClassEndpointBuilderFactory
public static interface ClassEndpointBuilderFactory.ClassEndpointBuilder extends org.apache.camel.builder.EndpointProducerBuilder
Builder for endpoint for the Class component.
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default ClassEndpointBuilderFactory.AdvancedClassEndpointBuilder
advanced()
default ClassEndpointBuilderFactory.ClassEndpointBuilder
cache(Boolean cache)
Deprecated.default ClassEndpointBuilderFactory.ClassEndpointBuilder
cache(String cache)
Deprecated.default ClassEndpointBuilderFactory.ClassEndpointBuilder
method(String method)
Sets the name of the method to invoke on the bean.default ClassEndpointBuilderFactory.ClassEndpointBuilder
scope(String scope)
Scope of bean.default ClassEndpointBuilderFactory.ClassEndpointBuilder
scope(org.apache.camel.BeanScope scope)
Scope of bean.
-
-
-
Method Detail
-
advanced
default ClassEndpointBuilderFactory.AdvancedClassEndpointBuilder advanced()
-
cache
@Deprecated default ClassEndpointBuilderFactory.ClassEndpointBuilder cache(Boolean cache)
Deprecated.Use scope option instead. The option is a: <code>java.lang.Boolean</code> type. Group: common- Parameters:
cache
- the value to set- Returns:
- the dsl builder
-
cache
@Deprecated default ClassEndpointBuilderFactory.ClassEndpointBuilder cache(String cache)
Deprecated.Use scope option instead. The option will be converted to a <code>java.lang.Boolean</code> type. Group: common- Parameters:
cache
- the value to set- Returns:
- the dsl builder
-
method
default ClassEndpointBuilderFactory.ClassEndpointBuilder method(String method)
Sets the name of the method to invoke on the bean. The option is a: <code>java.lang.String</code> type. Group: common- Parameters:
method
- the value to set- Returns:
- the dsl builder
-
scope
default ClassEndpointBuilderFactory.ClassEndpointBuilder scope(org.apache.camel.BeanScope scope)
Scope of bean. When using singleton scope (default) the bean is created or looked up only once and reused for the lifetime of the endpoint. The bean should be thread-safe in case concurrent threads is calling the bean at the same time. When using request scope the bean is created or looked up once per request (exchange). This can be used if you want to store state on a bean while processing a request and you want to call the same bean instance multiple times while processing the request. The bean does not have to be thread-safe as the instance is only called from the same request. When using prototype scope, then the bean will be looked up or created per call. However in case of lookup then this is delegated to the bean registry such as Spring or CDI (if in use), which depends on their configuration can act as either singleton or prototype scope. so when using prototype then this depends on the delegated registry. The option is a: <code>org.apache.camel.BeanScope</code> type. Default: Singleton Group: common- Parameters:
scope
- the value to set- Returns:
- the dsl builder
-
scope
default ClassEndpointBuilderFactory.ClassEndpointBuilder scope(String scope)
Scope of bean. When using singleton scope (default) the bean is created or looked up only once and reused for the lifetime of the endpoint. The bean should be thread-safe in case concurrent threads is calling the bean at the same time. When using request scope the bean is created or looked up once per request (exchange). This can be used if you want to store state on a bean while processing a request and you want to call the same bean instance multiple times while processing the request. The bean does not have to be thread-safe as the instance is only called from the same request. When using prototype scope, then the bean will be looked up or created per call. However in case of lookup then this is delegated to the bean registry such as Spring or CDI (if in use), which depends on their configuration can act as either singleton or prototype scope. so when using prototype then this depends on the delegated registry. The option will be converted to a <code>org.apache.camel.BeanScope</code> type. Default: Singleton Group: common- Parameters:
scope
- the value to set- Returns:
- the dsl builder
-
-