14
• libraryFile: Value is one or more C++ library files that is
loaded when the extension is processed.
•
imageDirectory: Value is one or more directories that will be
searched for image gif files for icons, etc. If an extension has
many image files for many nodes, it may be convenient to put
them in an images subdirectory, and specify that this
property valuea as
“images”. The image directories are
searched after the system image directories, so it is prudent to
use unique image files names that won’t conflict with the
system image files.
•
jniDirectory: Value is one or more directories that is used
when executing the Java
System.loadLibrary(name) method
to dynamically link code that can be called directly via Java
JNI. The files specified by the
libraryFile property are not
automatically linked via Java JNI.
•
initExtensionClass: Value is one or more fully-specified
Java class names (including packages, if it is not a class in the
default package). After all of the library files and Java jar files
are processed, each of these classes is initialized by calling the
Java static method “
void initExtension(String
extensionName, String extensionDirPath)
” on the class (if
this class and method is defined), passing the name of the
extention subdirectory within extensions and the full
pathname of this extension subdirectory. This initialization
routine can do whatever linking and loading that is necessary.
It may be useful to save the extension subdirectory path in a
global variable, for future use.
Kommentare zu diesen Handbüchern