Package org.olat.core.extensions

Examples of org.olat.core.extensions.ExtensionManager


  public void setPortletList(List portletList) {
    if (portletList == null)
      throw new AssertException("null value for portletList not allowed.");

    // check beans
    ExtensionManager extMgr = ExtensionManager.getInstance();
    try {
      for (Iterator iter = portletList.iterator(); iter.hasNext();) {
        Portlet portlet = (Portlet) iter.next();
        portlets.put(portlet.getName(), portlet);
        Tracing.logInfo("Adding portlet from configuraton:: " + portlet.getName(), PortletFactory.class);
       
        if (portlet instanceof OLATExtension) {
          try {
            extMgr.deployExtension((OLATExtension)portlet);
          } catch (IOException ioe) {
            throw new StartupException("Error deploying bean '" + portlet + "'.", ioe);
          }
        }
      }
View Full Code Here


   */
  public void setPortalList(List portalList) {
    if (portalList == null)
      throw new AssertException("null value for portalList not allowed.");
    // check beans
    ExtensionManager extMgr = ExtensionManager.getInstance();
    try {
      for (Iterator iter = portalList.iterator(); iter.hasNext();) {
        Portal portal = (Portal) iter.next();
        portals.put(portal.getName(), portal);
        Tracing.logInfo("Adding portal from configuraton:: " + portal.getName(), PortalFactory.class);

        if (portal instanceof OLATExtension) {
          try {
            extMgr.deployExtension((OLATExtension)portal);
          } catch (IOException ioe) {
            throw new StartupException("Error deploying bean '" + portal + "'.", ioe);
          }
        }
      }
View Full Code Here

  public void setNodeConfigurationList(List<CourseNodeConfiguration> courseNodeConfigurationList) throws StartupException {
    courseNodeConfigurationsAliases = new ArrayList<String>(courseNodeConfigurationList.size());
    courseNodeConfigurations = new HashMap<String, CourseNodeConfiguration>(courseNodeConfigurationList.size());
    // check beans
    ExtensionManager extMgr = ExtensionManager.getInstance();
    for (Iterator<CourseNodeConfiguration> iter = courseNodeConfigurationList.iterator(); iter.hasNext();) {
      try {
        CourseNodeConfiguration cnConfig = iter.next();
        courseNodeConfigurationsAliases.add(cnConfig.getAlias());
        courseNodeConfigurations.put(cnConfig.getAlias(), cnConfig);
        log.info("Added building block '" + cnConfig.getAlias() + "', class '" + cnConfig.getClass().getName() + "'.");
        if (cnConfig instanceof OLATExtension) try {
          extMgr.deployExtension((OLATExtension) cnConfig);
        } catch (IOException ioe) {
          throw new StartupException("Error deploying bean '" + cnConfig + "'.",ioe);
        }
      } catch (ClassCastException cce) {
        // log message because static initializers will throw
View Full Code Here

TOP

Related Classes of org.olat.core.extensions.ExtensionManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.