public interface TokenConfiguration
Configures backend tokens
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
addTokenProvider(Provider<java.util.Map<String, TokenValue>> tokenProvider)Adds a provider of tokens. |
|
public void |
fileToken(String key, Object value)Set a single token value. |
|
public void |
setTokens(java.util.Map<String, ?> newTokens)Replace all tokens with a new set. |
|
public void |
token(String key, Object value)Set a single token value. |
|
public void |
tokens(java.util.Map<String, ?> moreTokens)Adds more tokens. |
Adds a provider of tokens.
These providers are processed before any of the customisations on the class.
tokenProvider - Addition provider of tokensSet a single token value.
key - Token namevalue - Lazy-evaluted value which is known to be a file. Anything that can resolve to a file.Replace all tokens with a new set.
Only useful when a custom template is used.
newTokens - New replacement setSet a single token value.
key - Token namevalue - Lazy-evaluted value. Anything that can resolve to a string.Adds more tokens.
Only useful when a custom template is used.
moreTokens - Additional tokens for replacement.