Class ModuleRegistry

java.lang.Object
org.exoplatform.portal.module.ModuleRegistry
All Implemented Interfaces:
org.picocontainer.Startable

public class ModuleRegistry extends Object implements org.picocontainer.Startable
Main registry to store and manage eXo Platform modules. Modules can be registered and also activated.
Created by The eXo Platform SAS Author : eXoPlatform exo@exoplatform.com Jun 24, 2010
  • Constructor Details

    • ModuleRegistry

      public ModuleRegistry(org.exoplatform.container.xml.InitParams initParams)
  • Method Details

    • addModule

      public void addModule(ModulePlugin modulePlugin)
      Add a module by plugin injection
      Parameters:
      modulePlugin - module component plugin
    • start

      public void start()
      Specified by:
      start in interface org.picocontainer.Startable
    • getDisplayName

      public String getDisplayName(String portletName, Locale locale)
    • getModulesForWebapp

      public Set<String> getModulesForWebapp(String webappName)
      Parameters:
      webappName - web archive application name
      Returns:
      List of profiles/modules that activate a webapp
    • getModulesForPortlet

      public Set<String> getModulesForPortlet(String portletId)
      Parameters:
      portletId - with form : applicationName/portletName
      Returns:
      List of profiles/modules that activate a portlet
    • isPortletActive

      public boolean isPortletActive(String portletId)
    • stop

      public void stop()
      Specified by:
      stop in interface org.picocontainer.Startable