You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/12/08 08:15:43 UTC

[camel] branch main updated: Update writing-components.adoc

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 1c3cd02  Update writing-components.adoc
1c3cd02 is described below

commit 1c3cd02b0bd00bf45abddf61e733150d45876575
Author: Gary Liu <ji...@163.com>
AuthorDate: Wed Dec 8 16:11:51 2021 +0800

    Update writing-components.adoc
---
 docs/user-manual/modules/ROOT/pages/writing-components.adoc | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/docs/user-manual/modules/ROOT/pages/writing-components.adoc b/docs/user-manual/modules/ROOT/pages/writing-components.adoc
index 2c90e78..57249f4 100644
--- a/docs/user-manual/modules/ROOT/pages/writing-components.adoc
+++ b/docs/user-manual/modules/ROOT/pages/writing-components.adoc
@@ -5,19 +5,19 @@ whether they be routing components, transformers, transports etc. The
 idea of a component is to be a factory and manager of
 xref:endpoint.adoc[Endpoints].
 
-Here are the main steps to writing a component:
+Here are the main steps to add a new component:
 
 * Write a POJO which implements the `Component` interface. The simplest approach is just to derive from `DefaultComponent`.
-* To support auto-discovery of your component add a file to
+* To support auto-discovery of your component, add a file of
 `META-INF/services/org/apache/camel/component/FOO` where FOO is the URI
 scheme for your component and any related endpoints created on the fly.
-The latter file should contain the definition of the component class.
+This file should contain the information of the component class full name.
 For example if your component is implemented by the
-`com.example.CustomComponent` class, the service file should contain the
+`com.example.CustomComponent` class, the file should contain the
 following line -- `class=com.example.CustomComponent`.
 
 Users can then either explicitly create your component, configure it and
-register with a `CamelContext` or users can use a URI which auto-creates your component.
+register it with a `CamelContext` or they can use a URI which auto-creates your component.
 
 [NOTE]
 ====