Examples of ExtensionManager


Examples of org.apache.avalon.excalibur.packagemanager.ExtensionManager

    }

    public void service( final ServiceManager serviceManager )
        throws ServiceException
    {
        final ExtensionManager packageRepository =
            (ExtensionManager)serviceManager.lookup( ExtensionManager.ROLE );
        m_packageManager = new PackageManager( packageRepository );
    }
View Full Code Here

Examples of org.apache.cxf.bus.extension.ExtensionManager

  private static boolean setExtensionOnBusIfMissing(Bus bus,
      Map<String, Extension> exts, String extensionName) {
    if (exts.containsKey(extensionName)
        && !bus.hasExtensionByName(extensionName)) {
      ExtensionManager extMan = bus.getExtension(ExtensionManager.class);
      if (extMan instanceof ExtensionManagerImpl) {
        ((ExtensionManagerImpl) extMan).add(exts.get(extensionName));
        return true;
      } else {
        throw new RuntimeException(
View Full Code Here

Examples of org.codehaus.loom.components.extensions.pkgmgr.ExtensionManager

     * @dna.dependency type="ClassLoader/common"
     */
    public void compose( final ResourceLocator locator )
        throws MissingResourceException
    {
        final ExtensionManager extensionManager = (ExtensionManager) locator.lookup(
            ExtensionManager.class.getName() );
        m_packageManager = new PackageManager( extensionManager );
        m_commonClassLoader = (ClassLoader) locator.lookup(
            ClassLoader.class.getName() + "/common" );
    }
View Full Code Here

Examples of org.codehaus.loom.components.extensions.pkgmgr.ExtensionManager

        final ArrayList resultPackages = new ArrayList();

        final int size = m_extensionManagers.size();
        for( int i = 0; i < size; i++ )
        {
            final ExtensionManager repository =
                (ExtensionManager)m_extensionManagers.get( i );
            final OptionalPackage[] packages =
                repository.getOptionalPackages( extension );
            if( null == packages || 0 == packages.length )
            {
                continue;
            }
View Full Code Here

Examples of org.codehaus.loom.components.extensions.pkgmgr.ExtensionManager

                                 final String specVersion2,
                                 final String implVersion2,
                                 final String vendor1,
                                 final String vendor2 )
    {
        final ExtensionManager manager =
            createExtensionManager( specVersion1,
                                    implVersion1,
                                    specVersion2,
                                    implVersion2 );
        final OptionalPackage[] pkgs = getOptionalPackages( manager );
View Full Code Here

Examples of org.earth3d.jearth.extensions.ExtensionManager

   * @throws MalformedURLException
   * @throws UnavailableServiceException
   */
  protected void start() throws MalformedURLException, InterruptedException, UnavailableServiceException {
    // create ExtensionManager
    ExtensionManager em = new ExtensionManager();

    // load configuration
    Configuration conf = new Configuration();

    // load internal "plugins"
View Full Code Here

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

Examples of org.olat.core.extensions.ExtensionManager

   */
  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

Examples of org.olat.core.extensions.ExtensionManager

  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
Copyright © 2018 www.massapi.com. 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.