Package hermes.config

Examples of hermes.config.ClasspathGroupConfig


        {
            menu.removeAll();

            for (Iterator iter = groupConfigs.iterator(); iter.hasNext();)
            {
                final ClasspathGroupConfig config = (ClasspathGroupConfig) iter.next();
                final JMenuItem item = new JMenuItem(config.getId());
                menu.add(item);

                item.addActionListener(new ActionListener()
                {
                    public void actionPerformed(ActionEvent e)
View Full Code Here


      }
   }

   public void doRename()
   {
      final ClasspathGroupConfig config = getClasspathGroupTableModel().getRow(getSelectedRow());
      final String name = JOptionPane.showInputDialog(HermesBrowser.getBrowser(), "New name:", config.getId());

      if (!config.getId().equals(name))
      {
         config.setId(name);
         dialog.setDirty();
      }
   }
View Full Code Here

   {
      final String name = JOptionPane.showInputDialog(HermesBrowser.getBrowser(), "Classpath group name:", "");

      if (!StringUtils.isEmpty(name))
      {
         final ClasspathGroupConfig config = new ClasspathGroupConfig();

         config.setId(name);
         getClasspathGroupTableModel().addRow(config);
         expandRow(getClasspathGroupTableModel().getRowCount() - 1) ;
      }
   }
View Full Code Here

      //
      // This is for the 1.7 upgrade where we want to move the old global
      // classloader into a default ClassloaderGroup.

      if (config.getLoader() != null && config.getLoader().size() > 0) {
        ClasspathGroupConfig gConfig = new ClasspathGroupConfig();
        gConfig.setId(SimpleClassLoaderManager.DEFAULT_LOADER);
        gConfig.getLibrary().addAll(config.getLoader());

        config.getClasspathGroup().clear();
        config.getClasspathGroup().add(gConfig);
        config.getLoader().clear();
      }
View Full Code Here

    public SimpleClassLoaderManager(List classPathGroups) throws IOException
    {
        for (Iterator iter = classPathGroups.iterator(); iter.hasNext();)
        {
            final ClasspathGroupConfig config = (ClasspathGroupConfig) iter.next();

            add(config);
        }
       
        System.setSecurityManager(null) ;
View Full Code Here

            return (ClassLoader) loaderById.get(id);
        }

        log.debug("createClassLoader id=" + id + " extConfig=" + extConfig.getClassName());

        ClasspathGroupConfig config = (ClasspathGroupConfig) configById.get(id);
        ClassLoader classLoader = null;

        if (config != null)
        {
            URL[] urls = HermesBrowser.getConfigDAO().getAdminFactoryURLs();

            if (urls != null)
            {
                classLoader = LoaderSupport.createClassLoader(config.getLibrary(), urls, getClass().getClassLoader());
            }
            else
            {
                classLoader = LoaderSupport.createClassLoader(config.getLibrary(), getClass().getClassLoader());
            }
           
            loaderById.put(id, classLoader);
        }
        else
View Full Code Here

    */
   public ClasspathGroupConfig getClasspathGroupConfig(HermesConfig config, String id)
   {
      for (Iterator<?> iter = config.getClasspathGroup().iterator(); iter.hasNext();)
      {
         ClasspathGroupConfig gConfig = (ClasspathGroupConfig) iter.next();

         if (gConfig.getId().equals(id))
         {
            return gConfig;
         }
      }

View Full Code Here

   {
      List<ClasspathGroupConfig> rval = new ArrayList<ClasspathGroupConfig>();

      for (Iterator<?> iter = classPathGroups.iterator(); iter.hasNext();)
      {
         ClasspathGroupConfig gConfig = (ClasspathGroupConfig) iter.next();
         ClasspathGroupConfig newGConfig = factory.createClasspathGroupConfig();

         newGConfig.setId(gConfig.getId());
         rval.add(newGConfig);

         for (Iterator<ClasspathConfig> iter2 = gConfig.getLibrary().iterator(); iter2.hasNext();)
         {
            ClasspathConfig cConfig = iter2.next();
            ClasspathConfig newCConfig = duplicate(cConfig);

            newGConfig.getLibrary().add(newCConfig);
         }
      }

      return rval;
   }
View Full Code Here

            {
                final Vector items = new Vector();

                for (Iterator iter = HermesBrowser.getBrowser().getConfig().getClasspathGroup().iterator(); iter.hasNext();)
                {
                    ClasspathGroupConfig config = (ClasspathGroupConfig) iter.next();

                    items.add(config.getId());
                }
               
                items.add("System") ;

                final JComboBox combo = new JComboBox(items);
View Full Code Here

TOP

Related Classes of hermes.config.ClasspathGroupConfig

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.