Package org.apache.camel.spi
Annotation Interface ApiParams
Used to annotate a nested configuration parameter type (such as a nested Configuration object) which can then be used
on a API based component, endpoint.
This is only applicable for API based components where configurations are separated by API names and methods
(grouping).
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionThe API methods that the API provides of this configuration class. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionString[]
Returns the method alias(s) of this api method.The API name (grouping) of this configuration class.boolean
Whether this API can only be used as a consumer.Returns a description of the API.boolean
Whether this API can only be used as a producer.
-
Element Details
-
apiName
String apiNameThe API name (grouping) of this configuration class.- Default:
""
-
description
String descriptionReturns a description of the API. This is used for documentation and tooling only.- Default:
""
-
producerOnly
boolean producerOnlyWhether this API can only be used as a producer. By default its assumed the API can be used as both consumer and producer.- Default:
false
-
consumerOnly
boolean consumerOnlyWhether this API can only be used as a consumer. By default its assumed the API can be used as both consumer and producer.- Default:
false
-
apiMethods
ApiMethod[] apiMethodsThe API methods that the API provides of this configuration class. -
aliases
String[] aliasesReturns the method alias(s) of this api method. The syntax for an alias is pattern=name where pattern is a regular expression. This is used for documentation and tooling only.- Default:
{""}
-