public class ExtensionManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
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. |
Modifier and Type | Method and Description |
---|---|
static ExtensionManager |
getInstance() |
java.util.List<ExtensionManager.ManagedService> |
getServices()
Returns the list of registered services.
|
VersionControlService |
getVersionControlService(VPTProject p)
Return the VersionControlService associated with the project.
|
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.
|
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)
public VersionControlService getVersionControlService(VPTProject p)
p
- The project.