davsclaus opened a new pull request, #30944: URL: https://github.com/apache/camel/pull/30944
# Description Part of [CAMEL-23832](https://issues.apache.org/jira/browse/CAMEL-23832). The umbrella ticket stays open. ## Summary New texts for the component description of infinispan-embedded, its `configuration` component option, 17 endpoint options (the 16 of the configuration class also appear as component options) and 17 headers. They were checked against the Camel code (`camel-infinispan-common` and `camel-infinispan-embedded`) and Infinispan 16.3.1. What was wrong or missing in the old texts: - `CamelInfinispanMap` named a `CamelInfinispanOperationPutAll` operation that does not exist (it is `PUTALL` and `PUTALLASYNC`). - `cacheContainerConfiguration` was called the "CacheContainer configuration": it is the configuration of the default cache (named `default`) of the cache manager that Camel creates. - `CamelInfinispanMaxIdleTime` did not say that the producer applies it only when the lifespan headers are set too. - `CamelInfinispanCurrentState` was cut off at `Listener#includeCurrentState`. - `cacheContainer` and `flags` had a sentence glued to the next one without a period, `customListener` was the Javadoc of a getter, and `key`, `value`, `oldValue`, `defaultValue`, `queryBuilder`, `configurationUri` and the headers did not say which operations use them or which header replaces which option. - `eventTypes` listed event types that the consumer's own listener never receives. The new text lists the nine it does receive. - `cacheName` spoke of a "default cache manager name": the value `current` selects the default cache, and `default` is only the name of the default cache of a cache manager that Camel creates. The options and headers of `InfinispanConfiguration` and `InfinispanConstants` live in `camel-infinispan-common` and are shared with `camel-infinispan` (the `infinispan` scheme). Each new shared text is correct for both components. The `configurationUri` text says what the file is for each scheme (an Infinispan XML file for infinispan-embedded, a Hot Rod client properties file for infinispan). As a result, 9 options and 15 headers of `infinispan` change too. Its JSON, catalog copy and Endpoint/Component DSL are regenerated. `camel-infinispan` is not marked as done: its own options are not reviewed here. ### Found, not changed - `eventTypes` accepts all 16 `Event.Type` values, but `InfinispanEmbeddedEventListener` has no callback for `CACHE_ENTRY_EVICTED`, `TRANSACTION_COMPLETED`, `TRANSACTION_REGISTERED`, `DATA_REHASHED`, `TOPOLOGY_CHANGED`, `PARTITION_STATUS_CHANGED` and `PERSISTENCE_AVAILABILITY_CHANGED`. With only those types set, the consumer receives nothing. - `CamelInfinispanOldValue` has the label `producer`, but the embedded consumer also sets it for `CACHE_ENTRY_REMOVED` events. - `CamelInfinispanIsPre`, `CamelInfinispanCommandRetried`, `CamelInfinispanOriginLocal` and `CamelInfinispanCurrentState` are set by the consumer's own listener only, not for a `customListener` or a continuous query (`queryBuilder`). The texts are unchanged except the cut-off `CamelInfinispanCurrentState`. - `CamelInfinispanCurrentState` is always false with the consumer's own listeners, as none of them sets `includeCurrentState` in its `@Listener` annotation. - `cacheContainerConfiguration`, `cacheContainer`, `configurationUri` and `flags` are read on the component only. Set on an endpoint they do nothing. The texts already said so for three of them, and now say it for `configurationUri` too. - The `remappingFunction` option has no header, so COMPUTE cannot get a function per message. ## Tests - There is no new test, as only description text changes. - A script compared the component JSON with the parent commit: only `description` fields changed (52 texts in infinispan-embedded.json: 1 component, 17 component options, 17 endpoint options, 17 headers; 33 in infinispan.json: 9 component options, 9 endpoint options, 15 headers). # Target - [x] I checked that the commit is targeting the correct branch (Camel 4 uses the `main` branch) # Tracking - [x] If this is a large change, bug fix, or code improvement, I checked there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for the change (usually before you start working on it). # Apache Camel coding standards and style - [x] I checked that each commit in the pull request has a meaningful subject line and body. - [x] I ran the formatter and built the module, then regenerated the catalog copy, `dsl/camel-endpointdsl` and `dsl/camel-componentdsl`, and committed all generated changes. # AI-assisted contributions - [x] If this PR includes AI-generated code, commits have proper co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR description identifies the AI tool used. _Claude Code on behalf of davsclaus_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
