Package org.jbpm.task.service.jms

Source Code of org.jbpm.task.service.jms.WSHumanTaskJMSProperties

package org.jbpm.task.service.jms;

import java.util.Enumeration;
import java.util.Properties;
import java.util.ResourceBundle;

public class WSHumanTaskJMSProperties {

  private static final WSHumanTaskJMSProperties INSTANCE = new WSHumanTaskJMSProperties();
 
  private Properties properties = new Properties();
 
  private WSHumanTaskJMSProperties() {
    super();
    ResourceBundle bundle = ResourceBundle.getBundle("jmsht.conf");
    Enumeration<String> keys = bundle.getKeys();
    while (keys.hasMoreElements()) {
      String key = keys.nextElement();
      String value = bundle.getString(key);
      this.properties.setProperty(key, value);
    }
  }
 
  public Properties getProperties() {
    return properties;
  }
 
  public static WSHumanTaskJMSProperties getInstance() {
    return INSTANCE;
  }
}
TOP

Related Classes of org.jbpm.task.service.jms.WSHumanTaskJMSProperties

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.