Class WorkspaceModuleExtensionPoint
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint<WorkspaceModule>
org.ametys.plugins.workspaces.project.modules.WorkspaceModuleExtensionPoint
- All Implemented Interfaces:
LogEnabled
,ExtensionPoint<WorkspaceModule>
,Disposable
,Initializable
,Component
,Contextualizable
,Serviceable
,ThreadSafe
public class WorkspaceModuleExtensionPoint
extends AbstractThreadSafeComponentExtensionPoint<WorkspaceModule>
Extension point for Workspace Modules Managers
-
Field Summary
Fields inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
_cocoonManager, _context, _manager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a Set containing the ids of all known extensions<M extends WorkspaceModule>
MGet a workspace modulegetModuleByName
(String moduleName) Get a workspace module by its nameGet the list of available modulesvoid
Finalize the initialization of the extensions.
This method is called after alladdExtension()
calls.
This is the last step before the actual startup of the application.Methods inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
addComponent, addExtension, contextualize, dispose, getExtension, hasExtension, initialize, service
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
Avalon Role
-
-
Constructor Details
-
WorkspaceModuleExtensionPoint
public WorkspaceModuleExtensionPoint()
-
-
Method Details
-
getModule
Get a workspace module- Type Parameters:
M
- The module type- Parameters:
moduleId
- The id of the module- Returns:
- The workspace module
-
getModules
Get the list of available modules- Returns:
- The modules
-
getModuleByName
Get a workspace module by its name- Parameters:
moduleName
- The module name- Returns:
- The workspace module or null if not found
-
initializeExtensions
Description copied from interface:ExtensionPoint
Finalize the initialization of the extensions.
This method is called after alladdExtension()
calls.
This is the last step before the actual startup of the application.- Specified by:
initializeExtensions
in interfaceExtensionPoint<WorkspaceModule>
- Overrides:
initializeExtensions
in classAbstractThreadSafeComponentExtensionPoint<WorkspaceModule>
- Throws:
Exception
- if something wrong occurs
-
getExtensionsIds
Description copied from interface:ExtensionPoint
Returns a Set containing the ids of all known extensions- Specified by:
getExtensionsIds
in interfaceExtensionPoint<WorkspaceModule>
- Overrides:
getExtensionsIds
in classAbstractThreadSafeComponentExtensionPoint<WorkspaceModule>
- Returns:
- a Set containing the ids of all known extensions
-