public class SplitClassLoaderFactory extends java.lang.Object implements TaxRateLookupFactory
Weighted.WeightedComparator| Constructor and Description |
|---|
SplitClassLoaderFactory(java.util.List<TaxRateLookupFactory> addressFactories)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.ClassLoader |
getClassLoader(TaxRateLookupConfiguration configuration)
Gets a new instance of
URLClassLoader |
static java.util.List<java.net.URL> |
getListOfFiles(java.nio.file.Path libPath)
Gets list of files found in the specified directory
|
TaxRateLookup |
getTaxRateLookupProvider(TaxRateLookupConfiguration configuration)
Gets
TaxRateLookup |
java.lang.String |
label()
Gets the label
|
int |
priority()
Gets priority, 1000
|
public SplitClassLoaderFactory(java.util.List<TaxRateLookupFactory> addressFactories)
addressFactories - list of TaxRateLookupFactory to addpublic java.lang.String label()
label in interface TaxRateLookupFactorypublic TaxRateLookup getTaxRateLookupProvider(TaxRateLookupConfiguration configuration) throws TaxRateLookupException
TaxRateLookupgetTaxRateLookupProvider in interface TaxRateLookupFactoryconfiguration - TaxRateLookupConfigurationTaxRateLookupClassLoaderProxyTaxRateLookupException - exception thrown when it fails constructingprotected java.lang.ClassLoader getClassLoader(TaxRateLookupConfiguration configuration) throws TaxRateLookupException
URLClassLoaderconfiguration - TaxRateLookupConfigurationURLClassLoaderTaxRateLookupException - exception thrown when it failspublic static java.util.List<java.net.URL> getListOfFiles(java.nio.file.Path libPath)
libPath - directory PathURL