|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Library
Library initialization and registration.
Nested Class Summary | |
---|---|
static interface |
Library.TYPE
Constant definitions for library types. |
Method Summary | |
---|---|
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 |
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. |
Method Detail |
---|
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 getRequireds()
boolean isRequired(Library lib)
lib
- the library to check if it is required
boolean isRequired(Class libClass)
libClass
- the library Class to check if it is required
int getPriority()
void doRegistration()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |