|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprojectviewer.config.ExtensionManager
public class ExtensionManager
A central location for managing ProjectViewer extensions (deployed as jEdit services). Allows for instantiation, cleanup, configuration for enabling/disabling extensions, etc.
Nested Class Summary | |
---|---|
static interface |
ExtensionManager.ManagedService
Classes that use extensions should implement this interface and register themselves by calling register(ManagedService) , to receive events about
changes in the service configuration. |
Method Summary | |
---|---|
static ExtensionManager |
getInstance()
|
java.util.List<ExtensionManager.ManagedService> |
getServices()
Returns the list of registered services. |
java.util.List<java.lang.Object> |
loadExtensions(java.lang.Class clazz)
Returns the extensions that implement the given service class. |
void |
register(ExtensionManager.ManagedService service)
Registers the given managed service with the manager. |
void |
reloadExtensions()
Called by the PV plugin instance to refresh the extensions of all the currently registered managed services. |
void |
unregister(ExtensionManager.ManagedService service)
Unregisters the given managed service. |
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 java.util.List<ExtensionManager.ManagedService> getServices()
public void register(ExtensionManager.ManagedService service)
public void unregister(ExtensionManager.ManagedService service)
public void reloadExtensions()
public java.util.List<java.lang.Object> loadExtensions(java.lang.Class clazz)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |