Package hermes.config

Examples of hermes.config.ProviderExtConfig


    provider.setProperties(p);

    // Extension.

    config.setClasspathId(basicInfo.getClasspathId());
    ProviderExtConfig extConfig = HermesBrowser.getConfigDAO().getFactory().createProviderExtConfig();
    PropertySetConfig p2 = HermesBrowser.getConfigDAO().getFactory().createPropertySetConfig();

    extConfig.setClassName("hermes.ext.ems.TibcoEMSAdminFactory");
    addProperty(p2.getProperty(), "serverUrl", basicInfo.getServerURL());
    addProperty(p2.getProperty(), "userName", basicInfo.getUsername());
    addProperty(p2.getProperty(), "password", basicInfo.getPassword());
    extConfig.setProperties(p2);
  }
View Full Code Here


        factoriesById.put(config.getId(), LoaderSupport.lookForFactories(config.getLibrary(), getClass().getClassLoader()));
    }

    private ClassLoader createClassLoader(String id) throws IOException, JAXBException
    {
        ProviderExtConfig extConfig = HermesBrowser.getConfigDAO().createDefaultProviderExtConfig(NullConnectionFactory.class.getName()) ;
       
        return createClassLoader(id, extConfig) ;
    }
View Full Code Here

    *
    * @see hermes.impl.ConfigDAO#createDefaultProviderExtConfig(java.lang.String)
    */
   public ProviderExtConfig createDefaultProviderExtConfig(String connectionFactoryName) throws JAXBException
   {
      final ProviderExtConfig config = factory.createProviderExtConfig();

      if (adminProperties.containsKey(connectionFactoryName))
      {
         config.setClassName((String) adminProperties.get(connectionFactoryName));
      }
      else
      {
         config.setClassName(DefaultHermesAdminFactory.class.getName());
      }

      config.setProperties(factory.createPropertySetConfig());

      return config;
   }
View Full Code Here

TOP

Related Classes of hermes.config.ProviderExtConfig

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.