Class JndiLdapConnectionPoolUtils
java.lang.Object
com.atlassian.crowd.embedded.core.util.JndiLdapConnectionPoolUtils
Utility class for JNDI LDAP Connection Pool, helping with setting system properties and initialising the pool.
- Since:
- 5.1.6, 5.2.1, 5.3.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Initializes the global JNDI LDAP Connection Pool.static boolean
Checks if the JNDI Ldap pool timeout is unlimited.static void
setPersistedJndiLdapPoolSystemProperties
(ConnectionPoolProperties persistedValues) Sets JNDI LDAP Connection Pool property, only if the System Property is not already set.
-
Method Details
-
setPersistedJndiLdapPoolSystemProperties
public static void setPersistedJndiLdapPoolSystemProperties(ConnectionPoolProperties persistedValues) Sets JNDI LDAP Connection Pool property, only if the System Property is not already set. This means values set by JVM or on command line (-D...) will always take precedence.- Parameters:
persistedValues
- persisted values
-
initJndiLdapPools
public static void initJndiLdapPools()Initializes the global JNDI LDAP Connection Pool. This method will take effect only if the pools were not yet initialized. -
isPoolTimeoutUnlimited
public static boolean isPoolTimeoutUnlimited()Checks if the JNDI Ldap pool timeout is unlimited.- Returns:
- true if the timeout is unlimited, false otherwise
-