org.exoplatform.platform.common.module
Class ModuleRegistry

java.lang.Object
  extended by org.exoplatform.platform.common.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


Field Summary
static String ALL_MODULES_PROFILE
           
 
Constructor Summary
ModuleRegistry(org.exoplatform.container.xml.InitParams initParams)
           
 
Method Summary
 void addModule(ModulePlugin modulePlugin)
          Add a module by plugin injection
 String getDisplayName(String portletName, Locale locale)
           
 Set<String> getModulesForPortlet(String portletId)
           
 Set<String> getModulesForWebapp(String webappName)
           
 boolean isPortletActive(String portletId)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALL_MODULES_PROFILE

public static final String ALL_MODULES_PROFILE
See Also:
Constant Field Values
Constructor Detail

ModuleRegistry

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

addModule

public void addModule(ModulePlugin modulePlugin)
Add a module by plugin injection


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 -
Returns:
List of profiles/modules that activate a webapp

getModulesForPortlet

public Set<String> getModulesForPortlet(String portletId)
Parameters:
portletId -
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


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.