C - Command typepublic class UserAliasesSource<C> extends Object
| Modifier and Type | Field and Description |
|---|---|
static ResourceLocator[] |
DEFAULT_LOCATORS
Default user alias source locators
|
| Constructor and Description |
|---|
UserAliasesSource(String filename,
String prefix,
List<ResourceLocator> locators,
List<String> searchLocations) |
UserAliasesSource(String filename,
String prefix,
String... searchLocations) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFilename()
Gets the filename of the configuration file that will be scanned for
alias definitions
|
List<ResourceLocator> |
getLocators()
Gets the locators that are used to resolve search locations to actual
usable locations
|
String |
getPrefix()
Gets the prefix that is used to distinguish alias definitions from other
property definitions in the configuration file
|
List<String> |
getSearchLocations()
Gets the search locations where the configuration file may be located in
order of preference
|
List<AliasMetadata> |
load()
Loads the alias metadata based on the configured sources
|
public static final ResourceLocator[] DEFAULT_LOCATORS
public UserAliasesSource(String filename, String prefix, String... searchLocations)
public String getFilename()
public List<String> getSearchLocations()
public String getPrefix()
If this is null/empty/blank then no prefix is in effect
public List<ResourceLocator> getLocators()
public List<AliasMetadata> load() throws FileNotFoundException, IOException
FileNotFoundException - Thrown if unable to find a properties fileIOException - Thrown if unable to read a properties fileCopyright © 2012–2022. All rights reserved.