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()
LibrariesInitializer
Library
objects. The initialization
process will stop if any exception is thrown by any of the libraries.initialize
in interface LibrariesInitializer
public void initialize(boolean ignoreerrors)
LibrariesInitializer
Library
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 LibrariesInitializer
ignoreerrors
- if library initialization errors will stop de processpublic void postInitialize()
LibrariesInitializer
Library
objects. The
initialization
process will stop if any exception is thrown by any of the libraries.postInitialize
in interface LibrariesInitializer
public void postInitialize(boolean ignoreerrors)
LibrariesInitializer
Library
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 LibrariesInitializer
ignoreerrors
- if library initialization errors will stop de processpublic void fullInitialize()
LibrariesInitializer
Library
objects.
The initialization
process will stop if any exception is thrown by any of the libraries.fullInitialize
in interface LibrariesInitializer
public void fullInitialize(boolean ignoreerrors)
LibrariesInitializer
Library
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 LibrariesInitializer
ignoreerrors
- 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)