|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.util.extension.ExtensionManager
public class ExtensionManager
Manages a set of Extensions.
| Constructor Summary | |
|---|---|
ExtensionManager(DockController controller)
Creates a new manager. |
|
| Method Summary | ||
|---|---|---|
void |
add(Extension extension)
Adds extension to the list of extensions. |
|
Extension[] |
getExtensions()
Gets a list of all extensions that are currently known to this manager. |
|
void |
init()
Starts up all extensions. |
|
void |
kill()
Stops and removes all extensions. |
|
|
load(ExtensionName<E> name)
Loads all extensions matching name. |
|
void |
remove(Extension extension)
Removes extension from the list of extensions. |
|
|
share(ExtensionName<E> name)
Creates a new SharedExtension object which uses name as key to read
extensions. |
|
protected void |
tryLoadDefaultExtensions()
Tries to load the standard extensions that are developed alongside with the main-framework. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExtensionManager(DockController controller)
controller - the controller in whose realm this manager works| Method Detail |
|---|
protected void tryLoadDefaultExtensions()
public void add(Extension extension)
extension to the list of extensions.
extension - the new extensionpublic void remove(Extension extension)
extension from the list of extensions.
extension - the extension to removepublic Extension[] getExtensions()
public <E> List<E> load(ExtensionName<E> name)
name.
E - the type of extensions that is loadedname - the name of the extensions
null extensions, may be emptypublic <E> SharedExtension<E> share(ExtensionName<E> name)
SharedExtension object which uses name as key to read
extensions. The SharedExtension object can be bound
and unbound at any time, it can be reused.
name - the name of the extension to share
public void init()
public void kill()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||