public interface Library
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Library.Required |
static interface |
Library.TYPE
Constant definitions for library types.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doRegistration() |
Class |
getLibrary()
Returns the
Library class this library is related to. |
int |
getPriority()
Returns a priority number to range this implementation in case multiple
ones are within the libraries initialization.
|
Set<Library.Required> |
getRequireds()
Returns a Set of required libraries and their types.
|
String |
getType()
Returns the type of the Library.
|
void |
initialize()
Performs all the initializations of the library, only related to himself:
register implementation classes through the Locator, start services, etc.
|
boolean |
isRequired(Class libClass)
Returns if a given library class is required.
|
boolean |
isRequired(Library lib)
Returns if a given library is required.
|
void |
postInitialize()
Performs all the initializations or validations related to the library
dependencies, as getting references to objects through other libraries
Locators.
|
void |
require(Class library) |
void |
require(Collection<Library.Required> libraries) |
void initialize()
throws LibraryException
LibraryException - if there is an error while performing the
initialization of the libraryvoid postInitialize()
throws LibraryException
LibraryException - if there is an error while loading an
implementation of the libraryClass getLibrary()
Library class this library is related to.Library class this library is related toString getType()
TYPE.Set<Library.Required> getRequireds()
boolean isRequired(Library lib)
lib - the library to check if it is requiredboolean isRequired(Class libClass)
libClass - the library Class to check if it is requiredint getPriority()
void doRegistration()
void require(Class library)
void require(Collection<Library.Required> libraries)