public abstract class AbstractLibrariesInitializer extends java.lang.Object implements LibrariesInitializer, Library.TYPE
LibrariesInitializer with the
initialization of Libraries already implemented, delegating on child classes
the finding of available Library objects.
This class is NOT thread safe.
API, IMPL, SERVICE| Constructor and Description |
|---|
AbstractLibrariesInitializer() |
AbstractLibrariesInitializer(java.lang.ClassLoader classLoader) |
AbstractLibrariesInitializer(java.lang.ClassLoader[] classLoaders) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.util.Set |
findLibraries(java.lang.Class libraryClass,
java.lang.ClassLoader classLoader) |
void |
fullInitialize()
Initializes and post-initializes all available
Library objects. |
void |
fullInitialize(boolean ignoreerrors)
Initializes and post-initializes all available
Library objects. |
java.util.List |
getLibraries() |
void |
initialize()
Initializes all available
Library objects. |
void |
initialize(boolean ignoreerrors)
Initializes all available
Library objects. |
void |
postInitialize()
Post-initializes all available
Library objects. |
void |
postInitialize(boolean ignoreerrors)
Post-initializes all available
Library objects. |
public AbstractLibrariesInitializer()
public AbstractLibrariesInitializer(java.lang.ClassLoader classLoader)
public AbstractLibrariesInitializer(java.lang.ClassLoader[] classLoaders)
public void initialize()
LibrariesInitializerLibrary objects. The initialization
process will stop if any exception is thrown by any of the libraries.initialize in interface LibrariesInitializerpublic void initialize(boolean ignoreerrors)
LibrariesInitializerLibrary objects. The initialization
process will stop or not if any exception is thrown by any of the
libraries depending on the ignoreerrors parameter.initialize in interface LibrariesInitializerignoreerrors - if library initialization errors will stop de processpublic void postInitialize()
LibrariesInitializerLibrary objects. The
initialization
process will stop if any exception is thrown by any of the libraries.postInitialize in interface LibrariesInitializerpublic void postInitialize(boolean ignoreerrors)
LibrariesInitializerLibrary objects. The
initialization
process will stop or not if any exception is thrown by any of the
libraries depending on the ignoreerrors parameter.postInitialize in interface LibrariesInitializerignoreerrors - if library initialization errors will stop de processpublic void fullInitialize()
LibrariesInitializerLibrary objects.
The initialization
process will stop if any exception is thrown by any of the libraries.fullInitialize in interface LibrariesInitializerpublic void fullInitialize(boolean ignoreerrors)
LibrariesInitializerLibrary objects.
The initialization
process will stop or not if any exception is thrown by any of the
libraries depending on the ignoreerrors parameter.fullInitialize in interface LibrariesInitializerignoreerrors - if library initialization errors will stop de processpublic java.util.List getLibraries()
protected abstract java.util.Set findLibraries(java.lang.Class libraryClass,
java.lang.ClassLoader classLoader)