Interface IEnvironmentTokenProvider


public interface IEnvironmentTokenProvider
Provides a token value into the attached environment
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Default token provider priority
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get the priority for this provider, should return a priority relative to DEFAULT_PRIORITY.
    Get the value of the specified token in this environment, or return null if this provider does not have a value for this token.
  • Field Details

    • DEFAULT_PRIORITY

      static final int DEFAULT_PRIORITY
      Default token provider priority
      See Also:
  • Method Details

    • getPriority

      int getPriority()
      Get the priority for this provider, should return a priority relative to DEFAULT_PRIORITY.
    • getToken

      Integer getToken(String token, MixinEnvironment env)
      Get the value of the specified token in this environment, or return null if this provider does not have a value for this token. All tokens are converted to UPPERCASE before being requested from the provider
      Parameters:
      token - Token (in upper case) to search for
      env - Current environment
      Returns:
      The token value, or null if this provider does not have the token