Enum Class DeclarationEnricherPhase

java.lang.Object
java.lang.Enum<DeclarationEnricherPhase>
org.mule.runtime.extension.api.loader.DeclarationEnricherPhase
All Implemented Interfaces:
Serializable, Comparable<DeclarationEnricherPhase>, Constable

public enum DeclarationEnricherPhase extends Enum<DeclarationEnricherPhase>
These phases are use to execute the enrichers in order, grouping them by phases.

Each DeclarationEnricherPhase describes a particular enrichment state from which DeclarationEnrichers can take advantage of.

Since:
1.0
  • Enum Constant Details

    • INITIALIZE

      public static final DeclarationEnricherPhase INITIALIZE
      First phase of DeclarationEnrichers to be executed.

      Basic settings that doesn't change the structure of the loaded extension but are required before the structure enrichment phase is executed should go in this phase.

      DeclarationEnrichers added to this phase should not add or change the structure of the extension nor change/add any configuration to the different elements that were loaded (Connections, Configs, Parameters, Etc)

    • STRUCTURE

      public static final DeclarationEnricherPhase STRUCTURE
      This phase contains all DeclarationEnrichers that enrich the extension with additional elements, for example adding common parameters.
    • WIRING

      public static final DeclarationEnricherPhase WIRING
      This phase contains all DeclarationEnrichers that ensure consistency among elements, required by enrichers in the phase, linking objects created by the STRUCTURE phase together.
    • POST_STRUCTURE

      public static final DeclarationEnricherPhase POST_STRUCTURE
      This phase contains all DeclarationEnrichers that go over the final extension structure and add metadata and properties to the declared elements.
    • LAYOUT

      public static final DeclarationEnricherPhase LAYOUT
      This phase contains all DeclarationEnrichers that add display elements to the final enriched extension.
    • FINALIZE

      public static final DeclarationEnricherPhase FINALIZE
      Final phase of DeclarationEnrichers to be executed, enrichers that for some reason should execute at the end of the chain should go in this phase.
  • Method Details

    • values

      public static DeclarationEnricherPhase[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DeclarationEnricherPhase valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null