Module com.github.rvesse.airline
Class AbstractPlaceholderLocator
java.lang.Object
com.github.rvesse.airline.parser.resources.FileLocator
com.github.rvesse.airline.parser.resources.AbstractPlaceholderLocator
- All Implemented Interfaces:
ResourceLocator
- Direct Known Subclasses:
EnvVarLocator
,JvmSystemPropertyLocator
A resource locator that supports placeholders of the form
${name}
which when found calls the
resolvePlaceholder(String)
method to try and resolve the encountered
placeholders. If the placeholder is not resolved then the string is left
as-is.-
Field Summary
FieldsFields inherited from class com.github.rvesse.airline.parser.resources.FileLocator
FILE_URI_PREFIX
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.github.rvesse.airline.parser.resources.FileLocator
open
-
Field Details
-
PLACEHOLDER_START
- See Also:
-
PLACEHOLDER_END
- See Also:
-
-
Constructor Details
-
AbstractPlaceholderLocator
public AbstractPlaceholderLocator()
-
-
Method Details
-
resolve
Description copied from class:FileLocator
Resolves the search location- Overrides:
resolve
in classFileLocator
- Parameters:
searchLocation
- Search location- Returns:
- Resolved location
-
resolvePlaceholder
Resolves a placeholder- Parameters:
name
- Placeholder name- Returns:
- Resolved placeholder
-