public abstract class AbstractLibrariesInitializer extends 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(ClassLoader classLoader) |
AbstractLibrariesInitializer(ClassLoader[] classLoaders) |
Modifier and Type | Method and Description |
---|---|
protected abstract Set |
findLibraries(Class libraryClass,
ClassLoader classLoader) |
void |
fullInitialize()
Initializes and post-initializes all available
Library objects. |
void |
fullInitialize(boolean ignoreerrors)
Initializes and post-initializes all available
Library objects. |
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(ClassLoader classLoader)
public AbstractLibrariesInitializer(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 List getLibraries()
protected abstract Set findLibraries(Class libraryClass, ClassLoader classLoader)