Interface IdAware

All Superinterfaces:
HasId
All Known Subinterfaces:
CamelClusterService, CamelPreemptiveClusterService, DevConsoleRegistry, HealthCheckRegistry, ProcessorExchangeFactory

public interface IdAware extends HasId
Marker for an object whose id can be injected, such as EIP Processors created from Camel routes.

Camel assigns the id (explicit or auto-generated) so it is available at runtime, which makes it easier to map the object back to its corresponding model definition. Extends HasId to add the ability to set the id.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Sets the id which has been auto generated
    void
    Sets the id

    Methods inherited from interface HasId

    getId
  • Method Details

    • setId

      void setId(String id)
      Sets the id
      Parameters:
      id - the id
    • setGeneratedId

      default void setGeneratedId(String id)
      Sets the id which has been auto generated
      Parameters:
      id - the auto generated id