|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.query.util.pkg.ModuleLoader
public final class ModuleLoader
Module loader.
Constructor Summary | |
---|---|
ModuleLoader(Context ctx)
Constructor. |
Method Summary | |
---|---|
boolean |
addImport(byte[] uri,
InputInfo ii,
QueryParser qp)
Adds a package from the repository or a Java class. |
static java.lang.String |
capitalize(java.lang.String path)
Capitalizes the last path segment. |
void |
close()
Closes opened jar files. |
java.lang.Class<?> |
findClass(java.lang.String clz)
Returns a reference to the specified class. |
java.lang.Object |
findImport(java.lang.String clz)
Returns an instance of the specified Java module class. |
static java.lang.String |
uri2path(java.lang.String uri)
Converts a URI to a directory path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModuleLoader(Context ctx)
ctx
- database contextMethod Detail |
---|
public void close()
public boolean addImport(byte[] uri, InputInfo ii, QueryParser qp) throws QueryException
uri
- module uriii
- input infoqp
- query parser
QueryException
- query exceptionpublic java.lang.Class<?> findClass(java.lang.String clz) throws java.lang.Throwable
clz
- fully classified class name
null
java.lang.Throwable
- any exception or error: ClassNotFoundException
,
LinkageError
or ExceptionInInitializerError
.public java.lang.Object findImport(java.lang.String clz)
clz
- class to be found
null
public static java.lang.String uri2path(java.lang.String uri)
Converts a URI to a directory path. The conversion is inspired by Zorba's URI transformation (http://www.zorba-xquery.com/html/documentation/2.2.0/zorba/uriresolvers):
null
is returned if the URI has an invalid syntax.
uri
- namespace uri
null
public static java.lang.String capitalize(java.lang.String path)
path
- input path
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |