public class DefaultLibrariesManager extends Object implements LibrariesManager
| Constructor and Description |
|---|
DefaultLibrariesManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLoadNewLibraries()
Return true if this libraries manager has the capability to dynamically load libraries after startup.
|
List<File> |
getLibrariesLocations()
Return the list of libraries loaded.
|
Library |
getLibrary(ClassLoader cl)
Return the loaded library for the given class loader, or null if no specific library matches this class loader.
|
Library |
getLibrary(String groupId,
String artifactId)
Return a loaded library, or null if not loaded.
|
IO.Readable |
getResource(String groupId,
String artifactId,
String path,
byte priority)
Open a resource from a specific library if possible, or return null if it does not exist.
|
IO.Readable |
getResourceFrom(ClassLoader cl,
String path,
byte priority)
Open a resource from a specific library if possible, or return null if it does not exist.
|
AsyncWork<Library,Exception> |
loadNewLibrary(String groupId,
String artifactId,
VersionSpecification version,
boolean optional,
byte priority,
WorkProgress progress,
long work)
Load a new library.
|
ISynchronizationPoint<Exception> |
onLibrariesLoaded()
Return a synchronization point which is blocked until this libraries manager has been initialized and has loaded any required library.
|
ApplicationClassLoader |
start(Application app)
This method is automatically called on application startup so this libraries manager
can initialize and load libraries as needed for the given application.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLibrary, getResource, getResourceFrompublic ApplicationClassLoader start(Application app)
LibrariesManagerstart in interface LibrariesManagerpublic ISynchronizationPoint<Exception> onLibrariesLoaded()
LibrariesManageronLibrariesLoaded in interface LibrariesManagerpublic boolean canLoadNewLibraries()
LibrariesManagercanLoadNewLibraries in interface LibrariesManagerpublic AsyncWork<Library,Exception> loadNewLibrary(String groupId, String artifactId, VersionSpecification version, boolean optional, byte priority, WorkProgress progress, long work)
LibrariesManagerloadNewLibrary in interface LibrariesManagerpublic IO.Readable getResourceFrom(ClassLoader cl, String path, byte priority)
LibrariesManagergetResourceFrom in interface LibrariesManagerpublic IO.Readable getResource(String groupId, String artifactId, String path, byte priority)
LibrariesManagergetResource in interface LibrariesManagerpublic Library getLibrary(ClassLoader cl)
LibrariesManagergetLibrary in interface LibrariesManagerpublic Library getLibrary(String groupId, String artifactId)
LibrariesManagergetLibrary in interface LibrariesManagerpublic List<File> getLibrariesLocations()
LibrariesManagergetLibrariesLocations in interface LibrariesManagerCopyright © 2018. All rights reserved.