blob: c0a872bcb4a842b87a3336659aa205e5d30f89ba [file] [log] [blame]
{"component":{"kind":"component","name":"class","title":"Class","description":"Invoke methods of Java beans specified by class name.","deprecated":false,"firstVersion":"2.4.0","label":"core,java","javaType":"org.apache.camel.component.beanclass.ClassComponent","supportLevel":"Stable","groupId":"org.apache.camel","artifactId":"camel-bean","version":"3.18.1","scheme":"class","extendsScheme":"","syntax":"class:beanName","async":false,"api":false,"consumerOnly":false,"producerOnly":true,"lenientProperties":false},"headers":{"CamelBeanMethodName":{"kind":"header","displayName":"","group":"producer","label":"","required":false,"javaType":"String","deprecated":false,"deprecationNote":"","autowired":false,"secret":false,"description":"The name of the method to invoke.","constantName":"org.apache.camel.component.bean.BeanConstants#BEAN_METHOD_NAME"}},"properties":{"beanName":{"kind":"path","displayName":"Bean Name","group":"common","label":"common","required":true,"type":"string","javaType":"java.lang.String","deprecated":false,"deprecationNote":"","autowired":false,"secret":false,"description":"Sets the name of the bean to invoke"},"cache":{"kind":"parameter","displayName":"Cache","group":"common","label":"common","required":false,"type":"boolean","javaType":"java.lang.Boolean","deprecated":true,"autowired":false,"secret":false,"description":"Use scope option instead."},"method":{"kind":"parameter","displayName":"Method","group":"common","label":"common","required":false,"type":"string","javaType":"java.lang.String","deprecated":false,"autowired":false,"secret":false,"description":"Sets the name of the method to invoke on the bean"},"scope":{"kind":"parameter","displayName":"Scope","group":"common","label":"common","required":false,"type":"object","javaType":"org.apache.camel.BeanScope","enum":["Singleton","Request","Prototype"],"deprecated":false,"autowired":false,"secret":false,"defaultValue":"Singleton","description":"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."},"lazyStartProducer":{"kind":"parameter","displayName":"Lazy Start Producer","group":"producer (advanced)","label":"producer,advanced","required":false,"type":"boolean","javaType":"boolean","deprecated":false,"autowired":false,"secret":false,"defaultValue":false,"description":"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."},"parameters":{"kind":"parameter","displayName":"Parameters","group":"advanced","label":"advanced","required":false,"type":"object","javaType":"java.util.Map<java.lang.String, java.lang.Object>","prefix":"bean.","multiValue":true,"deprecated":false,"autowired":false,"secret":false,"description":"Used for configuring additional properties on the bean"}}}