Interface Trait

All Known Implementing Classes:
DependencyTrait, EnvTrait, NameTrait, PropertyTrait

public interface Trait
Modeline trait
  • Method Summary

    Modifier and Type
    Method
    Description
    Name of trait
    org.apache.camel.spi.CamelContextCustomizer
    parseTrait(org.apache.camel.spi.Resource resource, String trait)
    Parses the trait
  • Method Details

    • getName

      String getName()
      Name of trait
    • parseTrait

      org.apache.camel.spi.CamelContextCustomizer parseTrait(org.apache.camel.spi.Resource resource, String trait)
      Parses the trait
      Parameters:
      resource - the source
      trait - the trait
      Returns:
      a customizer if the trait is accepted, otherwise null is returned