Interface IdAware

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

public interface IdAware extends HasId
To allow objects to be injected with an id, such as EIP Processors which has been defined from Camel routes.

This allows access to the id of the processor at runtime, which makes it easier to map it to the corresponding model definition.

  • 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 org.apache.camel.spi.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