Annotation Interface InfraService


@Retention(RUNTIME) @Documented @Target(TYPE) public @interface InfraService
Marks a class as a Service that can be used by Camel CLI infra The marked class is analyzed by the mojo CamelTestInfraGenerateMetadataMojo
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Interface that extends InfrastructureService the interface is used by Camel CLI infra run to retrieve testing information like port, endpoint, username...
    List of names that can be used to run the service
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Returns a description of this Service.
    Additional and optional Service name, in case of multiple Service implementations For example kafka has 3 implementations kafka - uses apache/kafka image as implementation kafka redpanda - uses redpandadata/redpanda image as implementation kafka strimzi - uses strimzi/kafka as image implementation
    The version of the infrastructure service (e.g., "7.4.9" for Redis, "2.54.0" for Artemis).
  • Element Details

    • service

      Class service
      Interface that extends InfrastructureService the interface is used by Camel CLI infra run to retrieve testing information like port, endpoint, username...
      Returns:
    • description

      String description
      Returns a description of this Service. This is used for documentation and tooling.
      Returns:
      Default:
      ""
    • serviceAlias

      String[] serviceAlias
      List of names that can be used to run the service
      Returns:
    • serviceImplementationAlias

      String[] serviceImplementationAlias
      Additional and optional Service name, in case of multiple Service implementations For example kafka has 3 implementations kafka - uses apache/kafka image as implementation kafka redpanda - uses redpandadata/redpanda image as implementation kafka strimzi - uses strimzi/kafka as image implementation
      Returns:
      Default:
      {}
    • serviceVersion

      String serviceVersion
      The version of the infrastructure service (e.g., "7.4.9" for Redis, "2.54.0" for Artemis). For container-based services, the version is auto-detected from the container image tag in container.properties at build time and does not need to be set here. For embedded services (no container), set this to the library version manually.
      Returns:
      Default:
      ""