|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.abstracthorizon.extend.server.deployment.support.DirectoryModuleLoader
public class DirectoryModuleLoader
This module loader provides directories from the file system (URL with "file:" as a protocol) that are without an extension.
Constructor Summary | |
---|---|
DirectoryModuleLoader()
Empty constructor |
Method Summary | |
---|---|
boolean |
canLoad(URI uri)
Module loader for directories. |
Module |
load(URI uri)
Creates DirectoryModule and returns it. |
Module |
loadAs(URI uri,
ModuleId moduleId)
Creates DirectoryModule and returns it. |
ModuleId |
toModuleId(URI uri)
Translates URI to moduleId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectoryModuleLoader()
Method Detail |
---|
public boolean canLoad(URI uri)
canLoad
in interface ModuleLoader
uri
- URI
true
if module loader knows how to load (create) module from given URIpublic ModuleId toModuleId(URI uri)
toModuleId
in interface ModuleLoader
uri
- uri
null
public Module load(URI uri)
DirectoryModule
and returns it.
load
in interface ModuleLoader
uri
- URI
DirectoryModule
public Module loadAs(URI uri, ModuleId moduleId)
DirectoryModule
and returns it.
loadAs
in interface ModuleLoader
uri
- URImoduleId
- module id
DirectoryModule
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |