Skip to content

CAMEL-23535: camel-api - enhance class-level javadoc for lifecycle and context types#23311

Merged
davsclaus merged 2 commits into
apache:mainfrom
ammachado:CAMEL-23535
May 19, 2026
Merged

CAMEL-23535: camel-api - enhance class-level javadoc for lifecycle and context types#23311
davsclaus merged 2 commits into
apache:mainfrom
ammachado:CAMEL-23535

Conversation

@ammachado
Copy link
Copy Markdown
Contributor

Description

CAMEL-23535 asks for an audit and enhancement of the javadoc in core/camel-api so that classes better explain what they are, what they do, and how they fit into the framework, with links to the relevant user-manual pages.

This PR is the first batch of that work: class-level javadoc on the lifecycle and context family of top-level public-API types. Scope is intentionally narrow so the prose style can be reviewed before the rest of core/camel-api is updated.

Changes

Class-level javadoc expanded on 18 top-level types in org.apache.camel:

  • Context: CamelContext, CamelContextAware, CamelContextLifecycle, CatalogCamelContext, ExtendedCamelContext, ContextEvents
  • Service lifecycle: Service, ServiceStatus, StatefulService
  • Exceptions: RuntimeCamelException, CamelException, CamelExchangeException, AlreadyStoppedException, FailedToCreateRouteException, FailedToStartRouteException, FailedToStartComponentException, FailedToCreateConsumerException, FailedToCreateProducerException

Each updated docblock follows the same pattern: a one-sentence what-it-is, a paragraph on the role in routing / lifecycle, sibling-type {@link} references, and (where a matching user-manual page exists) one <a href="https://camel.apache.org/manual/..."> link. The convention matches the existing javadoc style in Endpoint.java, Component.java, Processor.java, Message.java, Route.java.

The change is comment-only: no signatures, behaviour, or runtime code is altered.

Out of scope (follow-ups)

  • Public-method javadoc gap-filling in core/camel-api.
  • The rest of the top-level org.apache.camel.* surface (messaging core, endpoints/components/producers/consumers, routes & builders, annotations & functional types) will land as subsequent batches under the same JIRA.
  • org.apache.camel.spi.* and other sub-packages (catalog, console, cloudevents, cluster, clock, ai, health, vault, resume, trait, support).

Target

  • I checked that the commit is targeting the correct branch (Camel 4 uses the main branch)

Tracking

  • If this is a large change, bug fix, or code improvement, I checked there is a JIRA issue filed for the change.

Apache Camel coding standards and style

  • I checked that each commit in the pull request has a meaningful subject line and body.
  • I have run `mvn clean install -DskipTests` locally from root folder and I have committed all auto-generated changes.

Claude Code on behalf of Adriano Machado

ammachado added 2 commits May 18, 2026 13:11
…vanced Camel Core Guides

Refresh outdated version references, remove duplicate xrefs, fix
mislabeled link, correct typos and misleading wording across the three
core docs landing pages.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
…d context types

Expand class-level javadoc on CamelContext, Service, exceptions and related
lifecycle types in core/camel-api to better describe their role, when they
apply, and how they relate to sibling types.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
@ammachado ammachado marked this pull request as ready for review May 18, 2026 19:34
@github-actions
Copy link
Copy Markdown
Contributor

🌟 Thank you for your contribution to the Apache Camel project! 🌟
🤖 CI automation will test this PR automatically.

🐫 Apache Camel Committers, please review the following items:

  • First-time contributors require MANUAL approval for the GitHub Actions to run
  • You can use the command /component-test (camel-)component-name1 (camel-)component-name2.. to request a test from the test bot although they are normally detected and executed by CI.
  • You can label PRs using skip-tests and test-dependents to fine-tune the checks executed by this PR.
  • Build and test logs are available in the summary page. Only Apache Camel committers have access to the summary.

⚠️ Be careful when sharing logs. Review their contents before sharing them publicly.

@github-actions
Copy link
Copy Markdown
Contributor

🧪 CI tested the following changed modules:

  • core/camel-api
  • docs

ℹ️ Dependent modules were not tested because the total number of affected modules exceeded the threshold (50). Use the test-dependents label to force testing all dependents.

Build reactor — dependencies compiled but only changed modules were tested (2 modules)
  • Camel :: API
  • Camel :: Docs

⚙️ View full build and test results

@davsclaus davsclaus merged commit 75812fb into apache:main May 19, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants