@Immutable public final class FsManagerLocator extends Object implements FsManagerProvider
First, the value of the system property
with the class name "de.schlichtherle.truezip.fs.spi.FsManagerService"
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.fs.spi.FsManagerService"
.
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, the expression
new FsDefaultManager()
is used to create the file system manager in
this container.
FsDefaultManager
,
FsManagerService
Modifier and Type | Field and Description |
---|---|
static FsManagerLocator |
SINGLETON
The singleton instance of this class.
|
public static final FsManagerLocator SINGLETON
public FsManager get()
FsManagerProvider
Calling this method several times must return the same file system manager in order to ensure integrity of the virtual file system space.
get
in interface FsManagerProvider
Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.