@UsesOrderedConfiguration(value=SymbolProvider.class) public interface SymbolSource
${foo.bar.baz} where foo.bar.baz is the name of the symbol. The symbol may appear
inside some annotation, such as Value.
The SymbolSource service configuration is an ordered list of SymbolProviders.
Two key SymbolProvider services are FactoryDefaults and ApplicationDefaults.| Modifier and Type | Method and Description |
|---|---|
String |
expandSymbols(String input)
Given an input string that may contain symbols, returns the string with any and all symbols fully
expanded.
|
String |
valueForSymbol(String symbolName)
Expands the value for a particular symbol.
|
String valueForSymbol(String symbolName)
symbolName - RuntimeException - if the symbol name can not be expanded (no SymbolProvider can provide its
value), or if an expansion is directly or indirectly recursiveString expandSymbols(String input)
input - 5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.