|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ModuleLoader
This interface describes module loader - a class that knows how to load module from given URI.
Method Summary | |
---|---|
boolean |
canLoad(URI uri)
Returns true if module loader knows how to load (create) module from given URI. |
Module |
load(URI uri)
Loads module from given URI. |
Module |
loadAs(URI uri,
ModuleId moduleId)
Loads module from given URI. |
ModuleId |
toModuleId(URI uri)
Translates URI to moduleId |
Method Detail |
---|
boolean canLoad(URI uri)
true
if module loader knows how to load (create) module from given URI.
uri
- URI
true
if module loader knows how to load (create) module from given URIModuleId toModuleId(URI uri)
uri
- uri
null
Module load(URI uri)
canLoad(URI)
returns false
then this method
will return null
.
uri
- URI for module to be loaded from
Module loadAs(URI uri, ModuleId moduleId)
canLoad(URI)
returns false
then this method
will return null
.
uri
- URI for module to be loaded frommoduleId
- module id to be used while creating module
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |