camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [CONF] Apache Camel > Endpoint Annotations
Date Tue, 23 Apr 2013 09:46:00 GMT
    <base href="">
            <link rel="stylesheet" href="/confluence/s/2042/9/1/_/styles/combined.css?spaceKey=CAMEL&amp;forWysiwyg=true"
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="">Endpoint
    <h4>Page  <b>added</b> by             <a href="">James
    <div class="notificationGreySide">
         <h2><a name="EndpointAnnotations-EndpointAnnotations"></a>Endpoint

<p>As of <b>Camel 2.12</b> you can annotate <a href="/confluence/display/CAMEL/Endpoint"
title="Endpoint">Endpoint</a> and <a href="/confluence/pages/createpage.action?spaceKey=CAMEL&amp;title=Consumer&amp;linkCreation=true&amp;fromPageId=31819227"
class="createlink">Consumer</a> classes so that their configuration documentation
can be automatically generated by the maven plugin.</p>

<p>The following annotations are supported:</p>

<div class='table-wrap'>
<table class='confluenceTable'><tbody>
<th class='confluenceTh'>Annotation</th>
<th class='confluenceTh'>Description</th>
<td class='confluenceTd'>@UriEndpoint</td>
<td class='confluenceTd'>Specifies that an endpoint is annotated with @UriParam and/or
@UriParams annotations. Also specifies the default scheme to use in the generated documentation
and the associated Consumer class for this endpoint</td>
<td class='confluenceTd'>@UriParam</td>
<td class='confluenceTd'>Used to annotate a parameter value; usually specified via ?foo=bar
syntax in the URI strings in Camel. Used currently only on field declarations but in the future
could be used on setter methods too. If no name is specified then the name of the field/setter
property is used.</td>
<td class='confluenceTd'>@UriParams</td>
<td class='confluenceTd'>Specifies that a field is a nested object of one or more configuration
parameters; then the class of this field should be annnotated with one or more @UriParam or
@UriParams annotations</td>

<p>For example here is the <a href=""
class="external-link" rel="nofollow">TimerEndpoint</a>, notice the use of these annotations
and in its base classes.</p>
    <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href=""
class="grey">Change Notification Preferences</a>
       <a href="">View
       <a href=";showCommentArea=true#addcomment">Add

View raw message