|
TrueZIP Kernel 7.0-rc1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.schlichtherle.truezip.fs.sl.FsManagerLocator
@Immutable public final class FsManagerLocator
Locates a file system manager service of a class with a name which is resolved by querying a system property or searching the class path, whatever yields a result first.
First, the value of the system property
with the class name "de.schlichtherle.truezip.fs.spi.FsManagerProvider"
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.FsManagerProvider".
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.
| Field Summary | |
|---|---|
private FsManager |
manager
|
static FsManagerLocator |
SINGLETON
The singleton instance of this class. |
| Constructor Summary | |
|---|---|
private |
FsManagerLocator()
You cannot instantiate this class. |
| Method Summary | |
|---|---|
FsManager |
getManager()
Returns the file system manager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final FsManagerLocator SINGLETON
private final FsManager manager
| Constructor Detail |
|---|
private FsManagerLocator()
| Method Detail |
|---|
public FsManager getManager()
FsManagerServiceCalling this method multiple times must return the same file system manager in order to ensure consistency of the virtual file system space.
getManager in interface FsManagerService
|
TrueZIP Kernel 7.0-rc1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||