Class NameTrait

java.lang.Object
org.apache.camel.dsl.modeline.NameTrait
All Implemented Interfaces:
Trait

public class NameTrait extends Object implements Trait
  • Constructor Details

    • NameTrait

      public NameTrait()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: Trait
      Name of trait
      Specified by:
      getName in interface Trait
    • parseTrait

      public org.apache.camel.spi.CamelContextCustomizer parseTrait(org.apache.camel.spi.Resource resource, String trait)
      Description copied from interface: Trait
      Parses the trait
      Specified by:
      parseTrait in interface Trait
      Parameters:
      resource - the source
      trait - the trait
      Returns:
      a customizer if the trait is accepted, otherwise null is returned