LdapDnsProviderService is responsible for creating and providing
access to the registered LdapDnsProviders. The ServiceLoader
is used to find and register any implementations of LdapDnsProvider.
Instances of this class are safe for use by multiple threads.
| Modifier and Type | Field and Description |
|---|---|
| private static final ReentrantLock | |
| private final ServiceLoader | |
| private static volatile LdapDnsProviderService |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static LdapDnsProviderService | |
| pack-priv LdapDnsProviderResult | lookupEndpoints(String url, Hashtable<?, ?> env)
Retrieves result from the first provider that successfully resolves the endpoints. |
| LOCK | back to summary |
|---|---|
| private static final ReentrantLock LOCK | |
| providers | back to summary |
|---|---|
| private final ServiceLoader<LdapDnsProvider> providers | |
| service | back to summary |
|---|---|
| private static volatile LdapDnsProviderService service | |
| LdapDnsProviderService | back to summary |
|---|---|
| private LdapDnsProviderService() Creates a new instance of LdapDnsProviderService | |
| getInstance | back to summary |
|---|---|
| pack-priv static LdapDnsProviderService getInstance() Retrieves the singleton instance of LdapDnsProviderService. | |
| lookupEndpoints | back to summary |
|---|---|
| pack-priv LdapDnsProviderResult lookupEndpoints(String url, Hashtable<?, ?> env) throws NamingException Retrieves result from the first provider that successfully resolves
the endpoints. If no results are found when calling installed
subclasses of
| |