Package net.tirasa.connid.commons.db
Class JNDIUtil
java.lang.Object
net.tirasa.connid.commons.db.JNDIUtil
Common utility methods regarding JNDI.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Properties
arrayToProperties
(String[] entries, ConnectorMessages messages) Parses arrays of string as entries of properties.
-
Field Details
-
INVALID_JNDI_ENTRY
- See Also:
-
-
Method Details
-
arrayToProperties
Parses arrays of string as entries of properties. Each entry must be in formkey=value
. We use = as only separator and treat only first occurrence of =. Blank entries are skipped.- Parameters:
entries
- could be null or size = 0messages
- 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
-