@DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) public abstract class FsDriverService extends Object implements FsDriverProvider
FsDriverLocator.
Implementations must be thread-safe.
| Constructor and Description |
|---|
FsDriverService() |
| Modifier and Type | Method and Description |
|---|---|
static Map<FsScheme,FsDriver> |
newMap(Object[][] config)
A static factory method for an unmodifiable driver map which is
constructed from the given configuration.
|
private static FsDriver |
toDriver(Object driver) |
private static Collection<FsScheme> |
toSchemes(Object o) |
String |
toString()
Returns a string representation of this object for debugging and logging
purposes.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetpublic String toString()
public static Map<FsScheme,FsDriver> newMap(Object[][] config)
FsDriverProvider interface for convenient creation of the
map to return by their FsDriverProvider.get() method.config - an array of key-value pair arrays.
The first element of each inner array must either be a
file system scheme, an object o which
can get converted to a set of file system suffixes by calling
new SuffixSet(o.toString())
or a collection of these.
The second element of each inner array must either be a
file system driver object, a
file system driver class, a
fully qualified name of a file system driver class,
or null.FsDriverProvider.get().NullPointerException - if a required configuration element is
null.IllegalArgumentException - if any other parameter precondition
does not hold.Syntax contraints for suffix lists.@NonNull private static Collection<FsScheme> toSchemes(@NonNull Object o)
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.