public class TaxRateLookupConfigurationBuilder
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_CONFIGURATION_FILE
String for the default configuration file
|
static java.lang.String |
NATIVE_BINARIES_LOCATION
String for binary location
|
static java.lang.String |
RESOURCES_LOCATION
String for resources location
|
static java.lang.String |
RUNTIME_LIB_LOCATION
String for runtime library location
|
| Constructor and Description |
|---|
TaxRateLookupConfigurationBuilder() |
| Modifier and Type | Method and Description |
|---|---|
TaxRateLookupConfiguration |
build()
Builds
TaxRateLookupConfiguration |
protected ConfigurationHolder |
fromAddressingPropertiesWithPrefix(java.lang.String prefix,
java.util.Properties properties)
Gets
ConfigurationHolder |
TaxRateLookupConfigurationBuilder |
withData(java.util.List<DataSource> data)
Sets
TaxRateLookupConfigurationBuilder with the given list of DataSource |
TaxRateLookupConfigurationBuilder |
withPreferences(Preferences preferences)
Sets
TaxRateLookupConfigurationBuilder with the given Preferences |
TaxRateLookupConfigurationBuilder |
withResources(java.nio.file.Path resources)
Sets
TaxRateLookupConfigurationBuilder with the given Preferences |
TaxRateLookupConfigurationBuilder |
withRuntimeLib(java.nio.file.Path runtimeLib)
Sets
TaxRateLookupConfigurationBuilder with the given path of runtime libraries |
public static final java.lang.String RESOURCES_LOCATION
public static final java.lang.String NATIVE_BINARIES_LOCATION
public static final java.lang.String RUNTIME_LIB_LOCATION
public static final java.lang.String DEFAULT_CONFIGURATION_FILE
public TaxRateLookupConfigurationBuilder withPreferences(Preferences preferences)
TaxRateLookupConfigurationBuilder with the given Preferencespreferences - the Preferences to useTaxRateLookupConfigurationBuilderpublic TaxRateLookupConfigurationBuilder withResources(java.nio.file.Path resources)
TaxRateLookupConfigurationBuilder with the given Preferencesresources - the path of resourcesTaxRateLookupConfigurationBuilderpublic TaxRateLookupConfigurationBuilder withRuntimeLib(java.nio.file.Path runtimeLib)
TaxRateLookupConfigurationBuilder with the given path of runtime librariesruntimeLib - the path of runtime librariesTaxRateLookupConfigurationBuilderpublic TaxRateLookupConfigurationBuilder withData(java.util.List<DataSource> data)
TaxRateLookupConfigurationBuilder with the given list of DataSourcedata - the list of DataSourceTaxRateLookupConfigurationBuilderpublic TaxRateLookupConfiguration build() throws TaxRateLookupException
TaxRateLookupConfigurationTaxRateLookupConfigurationTaxRateLookupException - exception thrown when it fails building TaxRateLookupConfigurationprotected ConfigurationHolder fromAddressingPropertiesWithPrefix(java.lang.String prefix, java.util.Properties properties) throws TaxRateLookupException
ConfigurationHolderprefix - prefix to useproperties - properties to extract values fromConfigurationHolderTaxRateLookupException - exception thrown when it fails getting {ConfigurationHolder