@License public class AutoCloseableProvider extends Provider implements AutoCloseable
Provider.Service| Modifier and Type | Field and Description |
|---|---|
protected Provider |
provider
The wrapped provider; it will be automatically uninstalled when out of
the "try-with-resources" block.
|
defaults| Constructor and Description |
|---|
AutoCloseableProvider(Provider provider)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the state of the underlying provider.
|
void |
close() |
String |
getInfo()
Returns information about the underlying provider.
|
String |
getName()
Returns the name of the underlying provider.
|
double |
getVersion()
Returns the version of the underlying provider.
|
Provider |
getWrappedProvider()
Returns a reference to the wrapped provider; this method is internal; do
not use it.
|
elements, entrySet, get, getProperty, getService, getServices, keys, keySet, load, put, putAll, putService, remove, removeService, toString, valuesgetProperty, list, list, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNamesclone, contains, containsKey, containsValue, equals, hashCode, isEmpty, rehash, sizeprotected Provider provider
public AutoCloseableProvider(Provider provider)
provider - the wrapped provider, which will be automatically closed when out of
the "try-with-resources" block, with an implementation specific mechanism.public String getName()
public String getInfo()
public double getVersion()
getVersion in class Providerpublic void clear()
public void close()
close in interface AutoCloseableAutoCloseable.close()public Provider getWrappedProvider()
Copyright © 2012-2014 Andrea Funtò. See here for terms and conditions.