org.tmatesoft.sqljet.core.internal.fs
Class SqlJetFileSystemsManager

java.lang.Object
  extended by org.tmatesoft.sqljet.core.internal.fs.SqlJetFileSystemsManager
All Implemented Interfaces:
ISqlJetFileSystemsManager

public class SqlJetFileSystemsManager
extends java.lang.Object
implements ISqlJetFileSystemsManager

Singleton implementation of ISqlJetFileSystemsManager.


Constructor Summary
protected SqlJetFileSystemsManager()
          Protected constructor
 
Method Summary
 ISqlJetFileSystem find(java.lang.String name)
          Locate a ISqlJetFileSystem by name.
static SqlJetFileSystemsManager getManager()
          Singleton accessor.
 void register(ISqlJetFileSystem fs, boolean isDefault)
          Register a ISqlJetFileSystem with the system.
 void unregister(ISqlJetFileSystem fs)
          Unregister a ISqlJetFileSystem so that it is no longer accessible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlJetFileSystemsManager

protected SqlJetFileSystemsManager()
Protected constructor

Method Detail

getManager

public static SqlJetFileSystemsManager getManager()
Singleton accessor.

Returns:
the manager

find

public ISqlJetFileSystem find(java.lang.String name)
Description copied from interface: ISqlJetFileSystemsManager
Locate a ISqlJetFileSystem by name. If no name is given, simply return the default ISqlJetFileSystem.

Specified by:
find in interface ISqlJetFileSystemsManager
Returns:

register

public void register(ISqlJetFileSystem fs,
                     boolean isDefault)
              throws SqlJetException
Description copied from interface: ISqlJetFileSystemsManager
Register a ISqlJetFileSystem with the system. It is harmless to register the same ISqlJetFileSystem multiple times. The new ISqlJetFileSystem becomes the default if isDefault is true.

Specified by:
register in interface ISqlJetFileSystemsManager
Throws:
SqlJetException

unregister

public void unregister(ISqlJetFileSystem fs)
                throws SqlJetException
Description copied from interface: ISqlJetFileSystemsManager
Unregister a ISqlJetFileSystem so that it is no longer accessible.

Specified by:
unregister in interface ISqlJetFileSystemsManager
Throws:
SqlJetException