@Immutable @DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) public final class IOPoolLocator extends Object implements IOPoolProvider
First, the value of the system property
with the class name "de.schlichtherle.truezip.socket.spi.IOPoolService"
as the key is queried.
If this yields a value, the class with that name is then loaded and
instantiated by calling its no-arg constructor.
Otherwise, the class path is searched for any resource file with the name
"META-INF/services/de.schlichtherle.truezip.socket.spi.IOPoolService".
If this yields a result, the class with the name in this file is then loaded
and instantiated by calling its no-arg constructor.
Otherwise, a ServiceConfigurationError is thrown.
| Modifier and Type | Class and Description |
|---|---|
private static class |
IOPoolLocator.Boot
A static data utility class used for lazy initialization.
|
| Modifier and Type | Field and Description |
|---|---|
static IOPoolLocator |
SINGLETON
The singleton instance of this class.
|
| Modifier | Constructor and Description |
|---|---|
private |
IOPoolLocator()
You cannot instantiate this class.
|
public static final IOPoolLocator SINGLETON
public IOPool<?> get()
Calling this method several times may return different I/O pools, so callers should cache the result for subsequent use.
The implementation in the class IOPoolLocator delegates the
call to the container loaded by the constructor.
get in interface IOPoolProviderCopyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.