Class JNDIUtil


  • public abstract class JNDIUtil
    extends Object
    Common utility methods regarding JNDI.
    • 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 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