|
org.netbeans.modules.masterfs/1 1.11 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.modules.masterfs.providers.AutoMountProvider
public abstract class AutoMountProvider
An object that implements AutoMountProvider is called from MasterFileSystem and can affect
behaviour of MasterFileSystem. MasterFileSystem invokes individual AutoMountProviders to obtain
instance of FileSystem for defined mount point (see createFileSystem(java.lang.String)
).
If there exists at least one implementation of AutoMountProvider, which returns non null FileSystem,
then such FileSystem is mounted into MasterFileSystem. This mechanism can be called automatic mounting.
So, AutoMountProvide must implement logic where (which mount point) and what to mount
(which FileSystem implementation) into MasterFileSystem.
FileSystemProvider.initialize(org.netbeans.modules.masterfs.providers.MountSupport)
,
MountSupport
Constructor Summary | |
---|---|
AutoMountProvider()
|
Method Summary | |
---|---|
abstract FileSystem |
createFileSystem(String mountPoint)
Provides filesystem with root defined by mountPoint or return null. |
Image |
getIcon(String mountPoint,
int iconType)
Gets icon for filesystem with root defined by mountPoint or null. |
abstract boolean |
isRootOfFileSystem(String mountPoint)
If method method isRootOfFileSystem returns false for the same mountPoint, then method createFileSystem must return null. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AutoMountProvider()
Method Detail |
---|
public abstract FileSystem createFileSystem(String mountPoint) throws IOException, PropertyVetoException
mountPoint
- corresponds to java.io.File.getAbstractPath
But be aware, that this doesn't mean, that such file must really exist.
mountPoint may also address virtual location.
IOException
PropertyVetoException
public abstract boolean isRootOfFileSystem(String mountPoint)
mountPoint
- corresponds to java.io.File.getAbstractPath
But be aware, that this doesn't mean, that such file must really exist.
mountPoint may also address virtual location.
createFileSystem(java.lang.String)
public Image getIcon(String mountPoint, int iconType)
mountPoint
- corresponds to java.io.File.getAbstractPath
But be aware, that this doesn't mean, that such file must really exist.
mountPoint may also address virtual location.iconType
- constant to indicate icon (@see BeanInfo)
|
org.netbeans.modules.masterfs/1 1.11 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |