public class LibraryBundle extends Object
| Constructor and Description |
|---|
LibraryBundle() |
| Modifier and Type | Method and Description |
|---|---|
protected UniversalFile |
getLibraryFile(String libname)
Returns the file pointing to given library.
|
protected String |
getLibraryPrefix()
Returns the library filename prefix.
|
protected UniversalFile[] |
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 UniversalFile[] getLibrarySearchDirs()
protected String getLibraryPrefix()
protected String getLibrarySuffix()
public void registerLibrary(String libname, String... dependencies)
libname - library name.dependencies - library dependencies.protected UniversalFile getLibraryFile(String libname) throws UniversalFile.FileAccessException
libname - library name.UniversalFile.FileAccessException - 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.