|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.virtual.spi.VFSContextFactoryLocator
public class VFSContextFactoryLocator
A singleton factory for locating VFSContextFactory instances given VFS root URIs.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_FACTORY_PROPERTY
The system property that defines the default file factory |
static java.lang.String |
SERVICES_PATH
The path used to load services from the classpath |
Constructor Summary | |
---|---|
VFSContextFactoryLocator()
|
Method Summary | |
---|---|
static VFSContextFactory |
getFactory(java.net.URI rootURI)
Return the VFSContextFactory for the VFS mount point specified by the rootURI. |
static VFSContextFactory |
getFactory(java.net.URL rootURL)
Return the VFSContextFactory for the VFS mount point specified by the rootURL. |
static void |
registerFactory(VFSContextFactory factory)
Register a new VFSContextFactory |
static boolean |
unregisterFactory(VFSContextFactory factory)
Unregister a VFSContextFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_FACTORY_PROPERTY
public static final java.lang.String SERVICES_PATH
Constructor Detail |
---|
public VFSContextFactoryLocator()
Method Detail |
---|
public static void registerFactory(VFSContextFactory factory)
factory
- the factory
java.lang.IllegalArgumentException
- if the factory is null or the factory
returns a null or no protocols
java.lang.IllegalStateException
- if one of the protocols is already registeredpublic static boolean unregisterFactory(VFSContextFactory factory)
factory
- the factory
java.lang.IllegalArgumentException
- if the factory is nullpublic static VFSContextFactory getFactory(java.net.URL rootURL)
rootURL
- - the URL to a VFS root
java.lang.IllegalArgumentException
- if the rootURL is nullpublic static VFSContextFactory getFactory(java.net.URI rootURI)
rootURI
- - the URI to a VFS root
java.lang.IllegalArgumentException
- if the rootURI is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |