public class PooledAddressFactory extends org.apache.commons.pool2.BasePooledObjectFactory<TaxRateLookup>
TaxRateLookupConfiguration and TaxRateLookupFactory.
It can create a pool of TaxRateLookup.| Constructor and Description |
|---|
PooledAddressFactory(TaxRateLookupConfiguration configuration,
TaxRateLookupFactory factory)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
TaxRateLookup |
create()
|
void |
destroyObject(org.apache.commons.pool2.PooledObject<TaxRateLookup> p)
Destroys list of
TaxRateLookup |
org.apache.commons.pool2.PooledObject<TaxRateLookup> |
wrap(TaxRateLookup api)
Gets a new instance of
DefaultPooledObject with the given TaxRateLookup |
activateObject, makeObject, passivateObject, validateObjectpublic PooledAddressFactory(TaxRateLookupConfiguration configuration, TaxRateLookupFactory factory)
configuration - TaxRateLookupFactory to usefactory - TaxRateLookupFactory to usepublic TaxRateLookup create() throws java.lang.Exception
create in class org.apache.commons.pool2.BasePooledObjectFactory<TaxRateLookup>TaxRateLookupjava.lang.Exception - exception thrown when it fails setting the given configurationpublic org.apache.commons.pool2.PooledObject<TaxRateLookup> wrap(TaxRateLookup api)
DefaultPooledObject with the given TaxRateLookupwrap in class org.apache.commons.pool2.BasePooledObjectFactory<TaxRateLookup>api - TaxRateLookup to setDefaultPooledObject with the given TaxRateLookuppublic void destroyObject(org.apache.commons.pool2.PooledObject<TaxRateLookup> p) throws java.lang.Exception
TaxRateLookupdestroyObject in interface org.apache.commons.pool2.PooledObjectFactory<TaxRateLookup>destroyObject in class org.apache.commons.pool2.BasePooledObjectFactory<TaxRateLookup>p - PooledObject of TaxRateLookupjava.lang.Exception - exception thrown when it fails destroying