public class LibraryBundle extends Object
| Constructor and Description |
|---|
LibraryBundle() |
| Modifier and Type | Method and Description |
|---|---|
protected Path |
getLibraryFile(String libname)
Returns the file pointing to given library.
|
protected String |
getLibraryPrefix()
Returns the library filename prefix.
|
protected Path[] |
getLibrarySearchDirs()
Returns the list of paths to search when loading libraries.
|
protected String |
getLibrarySuffix()
Returns the library filename suffix.
|
boolean |
isLoaded(String libname)
Returns a boolean indicating if given library is loaded.
|
void |
loadLibraries()
Loads all registered libraries in appropriate sequencing (according to internal dependencies).
|
protected void |
loadLibrary(String libname)
Loads a library.
|
void |
registerLibrary(String libname,
String... dependencies)
Registers a library and its dependencies.
|
protected Path[] getLibrarySearchDirs()
protected String getLibraryPrefix()
protected String getLibrarySuffix()
public void registerLibrary(String libname, String... dependencies)
libname - library name.dependencies - library dependencies.protected Path getLibraryFile(String libname) throws Path.PathAccessException
libname - library name.Path.PathAccessException - if library file could not be found.public boolean isLoaded(String libname)
libname - library name.protected void loadLibrary(String libname) throws UnsatisfiedLinkError
libname - library nameUnsatisfiedLinkError - if library could not be loaded.public void loadLibraries()
throws UnsatisfiedLinkError
UnsatisfiedLinkError - if a library could not be loaded.Copyright © 2016 Leandro José Britto de Oliveira. All rights reserved.