com.tibco.bpm.web.client.services.utils
Class PropertyReader

java.lang.Object
  extended by com.tibco.bpm.web.client.services.utils.PropertyReader

public class PropertyReader
extends java.lang.Object

Utility Class to read a text file

©2013 Cloud Software Group, Inc.

Since:
2.2

Field Summary
static PropertyReader instance
           
 
Method Summary
 boolean containsKey(java.lang.String key)
           
 boolean containsValue(java.lang.String value)
           
static PropertyReader getInstance()
           
 java.lang.String getPropertyValue(java.lang.String key)
           
 java.util.Map<java.lang.String,java.lang.String> getProps()
           
 void loadConfiguration(com.google.gwt.core.client.Scheduler.ScheduledCommand onSuccessCallback, com.google.gwt.core.client.Scheduler.ScheduledCommand onFailureCallback)
           
 void loadConfiguration(java.lang.String configFile, com.google.gwt.core.client.Scheduler.ScheduledCommand onSuccessCallback, com.google.gwt.core.client.Scheduler.ScheduledCommand onFailureCallback)
           
 void readProperties(java.lang.String content)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static PropertyReader instance
Method Detail

getInstance

public static PropertyReader getInstance()

loadConfiguration

public void loadConfiguration(java.lang.String configFile,
                              com.google.gwt.core.client.Scheduler.ScheduledCommand onSuccessCallback,
                              com.google.gwt.core.client.Scheduler.ScheduledCommand onFailureCallback)
                       throws java.lang.Exception
Throws:
java.lang.Exception

loadConfiguration

public void loadConfiguration(com.google.gwt.core.client.Scheduler.ScheduledCommand onSuccessCallback,
                              com.google.gwt.core.client.Scheduler.ScheduledCommand onFailureCallback)
                       throws java.lang.Exception
Throws:
java.lang.Exception

readProperties

public void readProperties(java.lang.String content)

getProps

public java.util.Map<java.lang.String,java.lang.String> getProps()

getPropertyValue

public java.lang.String getPropertyValue(java.lang.String key)

containsKey

public boolean containsKey(java.lang.String key)

containsValue

public boolean containsValue(java.lang.String value)


Copyright © 2015 Cloud Software Group, Inc. All Rights Reserved.