Class JNDIUtil

java.lang.Object
net.tirasa.connid.commons.db.JNDIUtil

public abstract class JNDIUtil extends Object
Common utility methods regarding JNDI.
  • Field Details

  • Method Details

    • arrayToProperties

      public static Properties arrayToProperties(String[] entries, ConnectorMessages messages)
      Parses arrays of string as entries of properties. Each entry must be in form key=value. We use = as only separator and treat only first occurrence of =. Blank entries are skipped.
      Parameters:
      entries - could be null or size = 0
      messages - the error messages from the configuration resource bundle
      Returns:
      properties of given entries
      Throws:
      IllegalArgumentException - when there is any error in format of any entry