|
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.FsDriverLocator
@Immutable @DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) public final class FsDriverLocator
Locates all file system drivers found on the class path.
The map of file system drivers is populated by instantiating all classes
which are named in the resource files with the name
"META-INF/services/de.schlichtherle.truezip.fs.spi.FsDriverProvider"
on the class path by calling their no-arg constructor.
If no file system drivers are found, a ServiceConfigurationError is
thrown.
| Field Summary | |
|---|---|
private Map<FsScheme,FsDriver> |
drivers
|
static FsDriverLocator |
SINGLETON
The singleton instance of this class. |
| Constructor Summary | |
|---|---|
private |
FsDriverLocator()
You cannot instantiate this class. |
| Method Summary | |
|---|---|
Map<FsScheme,FsDriver> |
getDrivers()
Returns an immutable map of the supported file system drivers. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final FsDriverLocator SINGLETON
private final Map<FsScheme,FsDriver> drivers
| Constructor Detail |
|---|
private FsDriverLocator()
| Method Detail |
|---|
public Map<FsScheme,FsDriver> getDrivers()
FsDriverServicenull,
its values must be nullable.
Calling this method multiple times should return the same map in order to ensure a consistent file system implementation scheme.
getDrivers in interface FsDriverService
|
TrueZIP Kernel 7.0-rc1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||