Interface IEnvironmentTokenProvider
public interface IEnvironmentTokenProvider
Provides a token value into the attached environment
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault token provider priority -
Method Summary
Modifier and TypeMethodDescriptionintGet the priority for this provider, should return a priority relative toDEFAULT_PRIORITY.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.
-
Field Details
-
DEFAULT_PRIORITY
static final int DEFAULT_PRIORITYDefault token provider priority- See Also:
-
-
Method Details
-
getPriority
int getPriority()Get the priority for this provider, should return a priority relative toDEFAULT_PRIORITY. -
getToken
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 forenv- Current environment- Returns:
- The token value, or null if this provider does not have the token
-