Package hermes.config

Examples of hermes.config.PropertyConfig


        setIcon(IconCache.getIcon("jndi.context"));
        toolTip.append("<html>") ;
       
        for (Iterator iter = namingConfig.getProperties().getProperty().iterator() ; iter.hasNext() ; )
        {
            PropertyConfig pConfig = (PropertyConfig) iter.next() ;
           
            toolTip.append(pConfig.getName()).append("=").append(pConfig.getValue()).append("<br>") ;

        }
       
        toolTip.append("classpathId=").append(namingConfig.getClasspathId()) ;
        toolTip.append("</html>") ;
View Full Code Here


                    DestinationConfig destinationConfig = buildDestinationConfig(queueName);
                    PropertySetConfig propertySetConfig = new PropertySetConfig();

                    for (String key : qmfObject.keySet()) {

                        PropertyConfig propertyConfig = new PropertyConfig();
                        propertyConfig.setName(key);
                        propertyConfig.setValue(qmfObject.getStringValue(key));
                        propertySetConfig.getProperty().add(propertyConfig);
                    }

                    destinationConfig.setProperties(propertySetConfig);
                    rval.add(destinationConfig);
View Full Code Here

      {
         Set appliedProperties = new HashSet();

         for (Iterator iter = propertySet.getProperty().iterator(); iter.hasNext();)
         {
            PropertyConfig propertyConfig = (PropertyConfig) iter.next();

            if (appliedProperties.contains(propertyConfig.getName()))
            {
               iter.remove();
            }
            else
            {
               try
               {
                 
                  BeanUtils.setProperty(bean, propertyConfig.getName(), TextUtils.replaceClasspathVariables(propertyConfig.getValue()));

                  appliedProperties.add(propertyConfig.getName());
                 
                  log.debug("set " + bean.getClass().getName() + " " + propertyConfig.getName() + "=" +  TextUtils.replaceClasspathVariables(propertyConfig.getValue())) ;
               }
               catch (InvocationTargetException t)
               {
                  log.error("unable to set property name=" + propertyConfig.getName() + " value=" + propertyConfig.getValue() + " on object of class "
                        + bean.getClass().getName() + ": " + t.getCause().getMessage(), t.getCause());
               }
            }
         }
      }
View Full Code Here

      if (rConfig.getProperties() != null)
      {
         for (Iterator<PropertyConfig> iter2 = rConfig.getProperties().getProperty().iterator(); iter2.hasNext();)
         {
            PropertyConfig pConfig = iter2.next();

            props.put(pConfig.getName(), pConfig.getValue());
         }
      }

      return props;
   }
View Full Code Here

    */
   public void updatePropertySet(PropertySetConfig properties, Map<?, ?> map) throws JAXBException
   {
      for (Iterator<PropertyConfig> iter = properties.getProperty().iterator(); iter.hasNext();)
      {
         final PropertyConfig pConfig = iter.next();

         if (map.containsKey(pConfig.getName()))
         {
            iter.remove();
         }
      }

      for (Iterator<?> iter2 = map.entrySet().iterator(); iter2.hasNext();)
      {
         final Map.Entry entry = (Map.Entry) iter2.next();
         final PropertyConfig pConfig = factory.createPropertyConfig();

         pConfig.setName((String) entry.getKey());

         if (entry.getValue() != null)
         {
            pConfig.setValue(entry.getValue().toString());
            properties.getProperty().add(pConfig);
         }
      }
   }
View Full Code Here

         {
            String value = map.get(key).toString();

            if (!value.equals("") && !key.equals("class") && !key.equals("name"))
            {
               PropertyConfig pConfig = factory.createPropertyConfig();

               pConfig.setName(key);
               pConfig.setValue(value);

               properties.getProperty().add(pConfig);
            }
         }
      }
View Full Code Here

               {
                  final String value = props.get(key).toString();

                  if (!key.equals("class") && !key.equals("name"))
                  {
                     PropertyConfig pConfig = factory.createPropertyConfig();

                     pConfig.setName(key);
                     pConfig.setValue(value);

                     rConfig.getProperties().getProperty().add(pConfig);
                  }
               }
            }
View Full Code Here

      // Copy over the other ones...

      for (Iterator<PropertyConfig> iter = properties.getProperty().iterator(); iter.hasNext();)
      {
         PropertyConfig pConfig = iter.next();

         if (!pConfig.getName().equals("binding"))
         {
            propertySet.getProperty().add(pConfig);
         }
      }

      PropertyConfig bProperty = factory.createPropertyConfig();

      // Update with the binding.

      bProperty.setName("binding");
      bProperty.setValue(binding);

      propertySet.getProperty().add(bProperty);
      providerConfig.setProperties(propertySet);

      providerConfig.setClassName(className);
View Full Code Here

      config.getFactory().add(newFactory);
   }

@Override
public PropertyConfig createPropertyConfig(String name, String value) {
  PropertyConfig p = factory.createPropertyConfig() ;
  p.setName(name) ;
  p.setValue(value) ;
  return p ;
}
View Full Code Here

                buffer.append("<html><b>").append(hermes.getConnectionFactory().getClass().getName()).append("</b><br>");

                for (Iterator iter = hermesConfig.getProvider().getProperties().getProperty().iterator(); iter.hasNext();)
                {
                    PropertyConfig property = (PropertyConfig) iter.next();

                    buffer.append(property.getName()).append("=").append(property.getValue());

                    if (iter.hasNext())
                    {
                        buffer.append("<br>");
                    }
View Full Code Here

TOP

Related Classes of hermes.config.PropertyConfig

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.