@Immutable @DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) 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 no-arg 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 no-arg constructor.
Otherwise, the expression
new FsFailSafeManager(new FsDefaultManager()) is used to create the
file system manager in this container.
FsFailSafeManager,
FsDefaultManager| Modifier and Type | Class and Description |
|---|---|
private static class |
FsManagerLocator.Boot
A static data utility class used for lazy initialization.
|
| Modifier and Type | Field and Description |
|---|---|
static FsManagerLocator |
SINGLETON
The singleton instance of this class.
|
| Modifier | Constructor and Description |
|---|---|
private |
FsManagerLocator()
You cannot instantiate this class.
|
public static final FsManagerLocator SINGLETON
public FsManager get()
FsManagerProviderCalling this method several times must return the same file system manager in order to ensure consistency of the virtual file system space.
get in interface FsManagerProviderCopyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.