Package net.tirasa.connid.commons.db
Class JNDIUtil
- java.lang.Object
-
- net.tirasa.connid.commons.db.JNDIUtil
-
public abstract class JNDIUtil extends Object
Common utility methods regarding JNDI.
-
-
Field Summary
Fields Modifier and Type Field Description static StringINVALID_JNDI_ENTRY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PropertiesarrayToProperties(String[] entries, org.identityconnectors.framework.common.objects.ConnectorMessages messages)Parses arrays of string as entries of properties.
-
-
-
Field Detail
-
INVALID_JNDI_ENTRY
public static final String INVALID_JNDI_ENTRY
- See Also:
- Constant Field Values
-
-
Method Detail
-
arrayToProperties
public static Properties arrayToProperties(String[] entries, org.identityconnectors.framework.common.objects.ConnectorMessages messages)
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
-
-