public class TaxRateLookupClassLoaderProxy extends java.lang.Object implements TaxRateLookup
| Constructor and Description |
|---|
TaxRateLookupClassLoaderProxy(java.util.List<TaxRateLookupFactory> addressFactories,
TaxRateLookup lookup,
java.lang.ClassLoader classLoader)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes
TaxRateLookup |
TaxResponse |
lookupByAddress(TaxRateAddress address,
Preferences preferences)
Performs lookup by address
|
TaxResponse |
lookupByLocation(Location location,
Preferences preferences)
Performs lookup by location i.e.
|
public TaxRateLookupClassLoaderProxy(java.util.List<TaxRateLookupFactory> addressFactories, TaxRateLookup lookup, java.lang.ClassLoader classLoader)
addressFactories - list of TaxRateLookupFactorylookup - TaxRateLookup to useclassLoader - ClassLoaderpublic TaxResponse lookupByAddress(TaxRateAddress address, Preferences preferences) throws TaxRateLookupException
lookupByAddress in interface TaxRateLookupaddress - address to use for lookuppreferences - Preferences to useTaxResponseTaxRateLookupException - exception thrown when it fails looking uppublic TaxResponse lookupByLocation(Location location, Preferences preferences) throws TaxRateLookupException
lookupByLocation in interface TaxRateLookuplocation - location o use for lookuppreferences - Preferences to useTaxResponseTaxRateLookupException - exception thrown when it fails looking uppublic void close()
throws java.lang.Exception
TaxRateLookupclose in interface java.lang.AutoCloseablejava.lang.Exception - exception thrown when it fails closing