Annotation Interface ChenileController


@Retention(RUNTIME) @Target(TYPE) @Documented public @interface ChenileController
Declares a Chenile controller. A controller is a Chenile service declaration; it is not necessarily an HTTP endpoint. When the same bean is also annotated with Spring's @RestController, chenile-http supplies the HTTP binding.

The package name is retained for source compatibility. The annotation is supplied by the chenile-core artifact so event-only and serverless applications do not need a chenile-http dependency.

  • Element Details

    • value

      String value
    • serviceName

      String serviceName
      Default:
      ""
    • serviceSelector

      String serviceSelector
      Spring bean name of a ServiceSelector used to select the implementation per request.
      Default:
      ""
    • serviceModule

      String serviceModule
      Default:
      ""
    • bluePrintName

      String bluePrintName
      Default:
      ""
    • additionalAttributes

      ChenileAdditionalAttribute[] additionalAttributes
      Default:
      {}
    • healthCheckerName

      String healthCheckerName
      Default:
      ""
    • mockName

      String mockName
      Default:
      ""
    • interfaceClass

      Class<?> interfaceClass
      Default:
      java.lang.Object.class
    • registerInServiceRegistry

      boolean registerInServiceRegistry
      Whether this service definition is published to the remote Chenile Service Registry. It is always registered locally in ChenileConfiguration.
      Default:
      true