@Immutable 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 public no-argument 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 public no-argument constructor.
Otherwise, a ServiceConfigurationError
is thrown.
IOPoolService
Modifier and Type | Field and Description |
---|---|
static IOPoolLocator |
SINGLETON
The singleton instance of this class.
|
Modifier and Type | Method and Description |
---|---|
IOPool<?> |
get()
Returns the I/O buffer pool to use for allocating temporary I/O buffers.
|
public static final IOPoolLocator SINGLETON
public IOPool<?> get()
IOPoolProvider
Multiple invocations should return the same I/O buffer pool. However, callers should cache the return value for subsequent use in case it isn't always the same.
get
in interface IOPoolProvider
Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.