|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcsheets.ext.ExtensionManager
public class ExtensionManager
The class that manages extensions to the CleanSheets application.
| Nested Class Summary | |
|---|---|
static class |
ExtensionManager.Loader
The class loader used to load extensions. |
| Method Summary | |
|---|---|
Extension |
getExtension(String name)
Returns the extension with the given name. |
Extension[] |
getExtensions()
Returns the extensions that have been loaded. |
static ExtensionManager |
getInstance()
Returns the singleton instance. |
ClassLoader |
getLoader()
Returns the class loader used to load extensions. |
Extension |
load(Class extensionClass)
Instantiates the given extension class. |
Extension |
load(String className)
Loads the extension with the given class name. |
Extension |
load(String className,
URL url)
Adds the given url to the class path, and loads the extension with the given class name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ExtensionManager getInstance()
public Extension[] getExtensions()
public Extension getExtension(String name)
public Extension load(String className,
URL url)
className - the complete class name of a class that extends
the abstract Extension classurl - the URL of the JAR-file or directory that contains the class
public Extension load(String className)
className - the complete class name of a class that extends
the abstract Extension class
public Extension load(Class extensionClass)
extensionClass - a class that extends the abstract Extension class
public ClassLoader getLoader()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||